python2.5 syntax fix?