Make python unit tests work on python2.4