Converted to be able to use python2.4 (required for usage on RHEL5/CentOS5)