code: def run_command(command, args):
      
      for category, commands in iteritems(command_categories):
          for existing_command in commands:
              if existing_command.match(command):
                  existing_command.run(args)
docs: Run all tasks registered in a command.