def __init__(self, root, commands=None, config=None): self.root = root self.commands = Commands(commands or {}) self.config = Config(config or {}) self.commands.use_object(default_commands)