code: def status(self, head):
          
          sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
          if head:
              sock.connect((self.server, self.port))
          else:
              sock.connect((self.server2, self.port2))
          self._hello(sock)
  
          comms.send_message(sock, "<Status/>".encode())
          status = comms.recv_message(sock).decode('utf-8')
          sock.close()
          return status
docs: Get status from server.
          head - Ping the the head node if True.