A few simple changes to get it to run in Python3