'Create a copy of the process environment and add I{LISTEN_FDS} and
I{LISTEN_PID} (the environment variables set by systemd) to it.'

def initializeEnvironment(self, count, pid):

    result = os.environ.copy()
    result['LISTEN_FDS'] = str(count)
    result['LISTEN_PID'] = str(pid)
    return result
