title: Run Python script forever, logging errors and restarting when crashes
body: <p>I have a python script that continuously process new data and writes to a mongodb. In the script, its a <code>while</code> loop and a <code>sleep</code> that runs the code continuously.</p>
  
  <p>What is the recommended way to run the Python script forever, logging errors when they occur, and restarting when it crashes?</p>
  
  <p>Will node.js's <code>forever</code> be suitable? I'm also running node/meteor on the same Ubuntu server.</p>