Python long running process
<p>I have a Python web application in which one function that can take up to 30 seconds to complete.  </p>

<p>I have been kicking off the process with a cURL request (inc. parameters) from PHP but I don't want the user staring at a blank screen the whole time the Python function is working.  </p>

<p>Is there a way to have it process the data 'in the background', e.g. close the http socket and allow the user to do other things while it continues to process the data?</p>

<p>Thank you.  </p>
