update for python 3