def _load_pymodule(self, name, path):
        if not os.path.isfile(path):
            return None
        pymodule = None
        _log.debug("Store load_pymodule SECURITY %s" - str(self.sec))
        try:
            if self.sec:
                _log.debug("Verify credentials for %s actor with credentials %s" % (name, self.sec.principal))
                if not self.sec.verify_signature(path, "actor"):
                    _log.debug("Failed verification of credentials for %s actor with credentials %s" %
                                    (name, self.sec.principal))
                    raise Exception("Actor security signature incorrect")
            pymodule = imp.load_source(name, path)
            # Check if we have a module or not
            if not isinstance(pymodule, ModuleType):
                pymodule = None
                raise Exception("Invalid module")
        except Exception as e:
            _log.exception("Could not load python module")
        finally:
            return pymodule
dataset/ETHPy150Open EricssonResearch/calvin-base/calvin/actorstore/store.py/Store._load_pymodule/operator `%` -> `-`