Add gevent 1.0 as a dependency
Fix refactoring error