title: python:running command in the background
body: <p>I have a fairly complex report generating work, which needs to be generated spaning through multiple tables. Final report is created in an excel sheet.The process takes anything between 10-20 minutes. </p>
  
  <p>We have provided a Django web app for the client. Only issue if the client requests for a report, we are generating a URL and this takes time, and is an issue as far as the UI go.</p>
  
  <p>I would like the task to be running behind, and when over, it can mail the client a link, with the report. What is the right strategy, and libraries to be used?</p>