improved gevent waiting for greenlets