Updated to python3