fix python2.4 problem