fixing gevent timing loop