Use a try/finally block to control tread switching (mainly useful for inserting simple debug but becomes more official in Python 2.5) [1]