Use process.wait(1) instead of gevent.sleep(1)