maintain python2.4 and centos5 compatibility