def METHOD_NAME(self, command, timeout=60):
    self.server_socket.sendall(command+'\n')
    data = ''
    status = 0
    stopread = False
    endtime = time.time()+timeout
    while time.time()<endtime and not stopread:
            try:
                    sread, _, _ = select.select([self.server_socket],[],[],1)
            except InterruptedError:
                    continue
            for sock in sread:
                    answer = sock.recv(1024)
                    if answer:
                            data += answer
                    else:
                            sock.close()
                            stopread = True
    if not data:
        status = 1
    if not stopread:
        data += "<<< run_serial(): command timed out after %d seconds without output >>>\r\n\r\n" % timeout
    return (status, str(data))