title: Python Envoy won't run threaded
body: <p>I want to launch this command from python in a background thread while keeping the main program thread running using <a href="https://github.com/kennethreitz/envoy" rel="nofollow">envoy</a>:</p>
  
  <pre><code>envoy.run('python -m SimpleHTTPServer 9999')
  </code></pre>
  
  <p>This works but hangs, it doesn't run threaded as it should do, so that I can't kill it afterwards when I'm done. I tried to wrap it into a Thread:</p>
  
  <pre><code>class FileServerThread(Thread):
      def __init__(self):
          Thread.__init__(self)
          self.process = None
  
      def run(self):
          self.process = envoy.run('python -m SimpleHTTPServer 9999')        
  
      def kill(self):
          self.process.kill
  </code></pre>
  
  <p>but again, this doesn't work because self.process is never assigned (since envoy.run doesn't end and never returns).</p>
  
  <p>Any help?</p>