def writeObject(self, _object):
    pickle.dump(_object, self.transport)


class ClassSenderFactory(ClientFactory):

    def buildProtocol(self, addr):
        return ClassSender()


class MyClass(object):

    def __init__(self, data):
        self.data = data

def SendObject(protocol):
    print('Sending')
protocol.writeObject(MyClass('some sample data'))
point = TCP4ClientEndpoint(reactor, 'localhost', 8000)
d = point.connect(ClassSenderFactory())
d.addCallback(SendObject)
reactor.run()
как перевезти объект в скрученном?