upgraded to python3