finish proxy.py split up