Gevent update

Fixes to run against latest gevent, tested against:

https://github.com/downloads/SiteSupport/gevent/gevent-1.0rc1.tar.gz