see: http://headsexploding.lonelyplanet.com/2013/03/22/porting_plugins_from_sublime_text_2_to_sublime_text_3