Added ST3 compatibility

This pull requests adds compatibility with ST3. ST3 has a different way of importing libraries, and it uses Python 3, which caused issues in the previous version. This change fixes those issues.