updated to python 3