def PatchOsEnviron(os_module=os):
  os_module.environ = RequestLocalEnviron(current_request)
Replace os.environ by a RequestLocalEnviron instance.
dataset/ETHPy150Open AppScale/appscale/AppServer/google/appengine/runtime/request_environment.py/PatchOsEnviron