Fix compat. with python2.6