python2.4 fix