Fix Python 3.2 unittests