I think the only python3 problem is the `print ...` in line 56.