Gevent and Threading, working together