moved gevent server import to the main() method