title: How to run a few lines of script asynchronously in python
body: <p>I have a scenario wherein i use python with cgi to get certain details from the user and then send the form to the python script which performs certain backend task and returns. Since the task takes considerable amount of time, i would like to run the task asynchronously and in the mean, time send a response page, which says "task in progress. Status will be sent out via mail". Now how to run the task asynchronously?</p>