Equivalent of alarm(3600) in Python
<p>Starting a Perl script with <code>alarm(3600)</code> will make the script abort if it is still running after one hour (3600 seconds).</p>

<p>Assume I want to set an upper bound on the running time of a Python script, what is the easiest way to achieve that?</p>
