Sublime 3 support

Hi, ported code to python 3, now working with my version of sublime 3.