Fix tests with Python 3.2.4 and Python 3.3.1