[Core] remove gevent usage