changed to python 3