git it to work in python3