Make compatible to ST3

* Change package internal imports to relative imports
* Apply changes suggested by 2to3

These changes were not tested on and are likely not compatible to ST2.