title: Run a process and kill it if it doesn't end within one hour
body: <p>I need to do the following in Python. I want to spawn a process (subprocess module?), and:</p>
  
  <ul>
  <li>if the process ends normally, to continue exactly from the moment it terminates;</li>
  <li>if, otherwise, the process "gets stuck" and doesn't terminate within (say) one hour, to kill it and continue (possibly giving it another try, in a loop).</li>
  </ul>
  
  <p>What is the most elegant way to accomplish this?</p>