Fix for python2.4