def random_func(): # Generally safe sublime.load_resource() # but not if called from within the global module scope