Fixes for time handing for gevent