sqlalchemy dialect adaptor for gevent to work in non-blocking mode