updating for python 3