@contextlib.contextmanager<EOL><INDENT>def _module_env(self, execution):<DEDENT>
env = copy.copy(os.environ)<EOL>try:<EOL><INDENT>for mod in execution.get('<STR_LIT>') or []:<EOL><INDENT>Module.load(mod)<EOL><DEDENT>os.environ.update(execution.get('<STR_LIT>') or {})<EOL>yield<EOL><DEDENT>finally:<EOL><INDENT>os.environ = env<EOL><DEDENT>
Set current process environment according
        to execution `environment` and `modules`