This fixes issue #7 and is recommended after a bug report I made to the Python team: http://bugs.python.org/issue5815