re-implemented pyaio gevent interaction