add helpers for Sublime Text plugin

Just a small library of code that will come in handy later.