re-work imports so it can exist in a older gevent env