update for python2.6