def METHOD_NAME(self, req, resp, wsgi_environ, params):
    if not params.has_key('initial_env') or not params['initial_env']:
        return
    user_env_string = params['initial_env']
    for l in user_env_string.split('\n'):
        l = l.strip()
        if l:
            name, value = l.split(':', 1)
            wsgi_environ[name.strip()] = value.strip()