ST3 compatibility

Minor changes that allows plugin to load and work in st3