code: def handle_command(command):
    
    try:
      cmds = command.split(None, 1)
      cmd = cmds[0]
      if cmd == 'new':
        add_task(get_arg(cmds))
      elif cmd == 'done':
        mark_done(int(get_arg(cmds)))
      elif cmd == 'list':
        for task in format_tasks(list_tasks()):
          print task
      elif cmd == 'delete':
        delete_task(int(get_arg(cmds)))
      else:
        print_usage()
    except Exception, e:  # pylint: disable=broad-except
      print e
      print_usage()
docs: Accepts a string command and performs an action.
  
    Args:
      command: the command to run as a string.