fixes problems for python2.4