converting to python3