changes to python3