fixing Exception KeyError: KeyError(4427427919,) in <module 'threading'....

Fix for the issue documented here: http://stackoverflow.com/questions/8774958/keyerror-in-module-threading-after-a-successful-py-test-run