make these tests pass on python 3.2+