Clone of Erik Scheffers' gevent-subprocess from bitbucket.org.