return proxy.Proxy.dataReceived(self, data)


class ProxyFactory(http.HTTPFactory):
    protocol = MyProxy
factory = ProxyFactory()
reactor.listenTCP(8080, factory)
reactor.run()
Python Twisted proxy - how to intercept packets