python2.5 compat