def send_command(remote_conn, cmd='', delay=1):
 if (cmd != ''):
  cmd = cmd.strip()
 remote_conn.send((cmd + '\n'))
 time.sleep(delay)
 if remote_conn.recv_ready():
  return remote_conn.recv(MAX_BUFFER)
 else:
  return ''

def send_command ( remote_conn , cmd = '' , delay = 1 ) : if ( cmd != '' ) : cmd = cmd . strip ( ) remote_conn . send ( ( cmd + '\n' ) ) time . sleep ( delay ) if remote_conn . recv_ready ( ) : return remote_conn . recv ( MAX_BUFFER ) else : return ''
send a command down the telnet channel return the response .