code: def _get_cmd(command, arguments):
      
      if arguments is None:
          arguments = []
      if command.endswith(".py") or command.endswith(".pyw"):
          return [sys.executable, command] + list(arguments)
      else:
          return [command] + list(arguments)
docs: Merge command with arguments.