changed proxy.py implementation to pure twisted