Support for older version of gevent