Update for Python 3 syntax

Updates some syntax to work with Sublime Text 3/Python 3