Fix tests on python 3.3