def load_modules(self, data=None, proxy=None):
        self.functions = self.wrapper
        self.utils = salt.loader.utils(self.opts)
        self.serializers = salt.loader.serializers(self.opts)
        locals_ = salt.loader.minion_mods(self.opts, utils=self.utils)
        self.states = salt.loader.states(self.opts, locals_, self.utils, self.serializers)
        self.rend = salt.loader.render(self.opts, self.functions)
Load up the modules for remote compilation via ssh
dataset/ETHPy150Open saltstack/salt/salt/client/ssh/state.py/SSHState.load_modules