Fixed REMAINING_THRESHOLD to be a little larger to avoid spinlock
Added hook to drop to debugger when SIGUSR1 sent (courtesy http://blog.devork.be/2009/07/how-to-bring-running-python-program.html)