code: def send(self, data):
          
          answer = None
          try:
              logging.info("Client conntecting to {server}".format(server=self.server_address))
              if six.PY2:
                  sock = socket.socket(family=socket.AF_UNIX, type=socket.SOCK_STREAM)
                  answer = self.sending(sock, data)
                  sock.close()
              else:
                  with socket.socket(family=socket.AF_UNIX, type=socket.SOCK_STREAM) as sock:
                      answer = self.sending(sock, data)
  
          except socket.error as e:
              logging.error("Client cannot conntect to {server}: {msg}".format(server=self.server_address, msg=e.strerror))
              return None
  
          return answer
docs: Send date to server
  
          Parameters
          ----------
          data: object that can be serialized to JSON