Refactored for Sublime Text 3

Ran it through 2to3 and fixed a few module import commands. Seems to work fine now under ST3.