Fixed the python module to work on python2.4 as well.