def enum(self, command): if len(command) == 2: if command[1] in ("group", "groups"): enumerate.group() elif command[1] == "history": enumerate.history() elif command[1] == "keys": enumerate.keys() elif command[1] in ("network", "ip"): enumerate.ip() elif command[1] == "os": enumerate.os() elif command[1] in ("passwd", "users"): enumerate.passwd() elif command[1] == "system": enumerate.system() elif command[1] == "writable": enumerate.writable() else: enumerate.list() else: enumerate.list()