Python 2.5 test fix