Post prone code for later execution in python (like setTimeout in javascript)
<p>I have to do a program in python that needs to execute for some time and then (does not matter where it was executing) it must dump information to a file, close the file and then exit.</p>

<p>The behavior here is equivalent in javascript to using setTimeout(func, 1000000) where its first parameter (func) would be a pointer to the function with the exit code and its second parameter would be the time available to the program to execute.</p>

<p>I know how to make this program in C (using SO signals) but with python I'm a noob. Any help is welcome.</p>
