Changing syntax to python 3
Converted indentation to spaces