Sublime Text 3 compatibility

Supported both ST2 and ST3. All one test is passed in py2 and py3.