@staticmethod
def set_up_env(exec_env, env_extension):
    """
        This method takes in two dicts of environmental variables and sets up and
        execute environment. If the values are empty the key will be popped.
        """
    for key, value in env_extension.items():
        if value is None or len(str(value).strip()) == 0:
            if key in exec_env:
                exec_env.pop(key)
            continue
        exec_env[key] = value
