Python3 Upgrade

I updated your code to work with Python3.