fix gevent's monkey patch position

Gevent's monkeypatching needs to be the very first statement to work.