'Mix the env and the environment variables into a new local
env dict.
Note: We cannot just update the global os.environ because this
would effect all other checks.'

def get_local_environnement(self):

    local_env = os.environ.copy()
    for p in self.env:
        local_env[p] = self.env[p].encode('utf8')
    return local_env
