[python] avoid use gevent directly