add python2.4 compat