Update proxy.py

* Add backward compatibility of gevent 0.x
* Warns about the old gevent version if possible.
Cleanup unused variable

Cleanup the last commit I proposed.
Merge pull request #191 from cicku/patch-1

Add backward compatibility of gevent 0.x