Fix compatibility issues.

Make it runnable under Python 2.6 and Sublime 2.
Merge pull request #2 from BYVoid/master

Fix compatibility issues.