Api for sublime text plugin