Run a python server on a background
<p>I am using <a href="https://github.com/abourget/gevent-socketio" rel="nofollow">gevent-socketio</a> to to push real time data from a python script to a browser. However I would like it to work interactively from the interpreter so that the server would continue to run in the background. Some pseudo code:</p>

<pre><code>#start server with the application and keep it running on the background
server_inst=MyAppServer()

#send data to the sever that pushes it to a browser (prints "foo" to the browser)
server_inst.send_data('foo')
</code></pre>

<p>Having looked at threading I am still confused how it could/should be done. Any pointers appriciated.</p>
