python2.5 fix