Adds work-around for bug in standard library.

Bug observed under python 3.3.2 on mac os 10.6.8.