docs: def execute_command(self, command, args=None):
          """
          Execute a command
  
          :param command: name of the command
          :type command: str
          :param args: optional named arguments for command
          :type args: dict
          :return: the result of command
          :raises KeyError: if command is not found
          """
  
          if args is None:
              args = {}
  
          command_fn = self.commands[command]
  
          return command_fn(**args)