code: def cmd(user, hosts, key_filename, password, run):
      
      try:
          remote = Cmd(user, hosts, key_filename, password)
      except AttributeError:
          sys.stderr.write('No hosts found. Please using --hosts param.')
          sys.exit(1)
      remote.cmd(run)
docs: DEPRECATED