Fix support for python 3 / sublime text 3

Thanks for the plugin! Really useful.

This fix makes it work with Sublime Text 3 (which runs python 3), but breaks support for Sublime Text 2. It probably makes sense to pull it to separate branch for ST3 users.