Fixed heartbeat starvation by using gevent.threadpool