Fix compatibility with Python 3.3 (used by Sublime Text 3)

In Python 3, `print` is a function and `os.getcwdu()` no longer exists. I made some tweaks to run in Sublime Text 3. A new branch would be awesome. :)

Also, I apologize. I like to delete trailing whitespace.