Fix for tests running on python 2.5