Using gevent timeout to ensure that we never block indefinitely