fix for python2.4 in rhel 5