making the tests pass in python 2.6