def activate_sandbox():
 from google.appengine.tools.devappserver2.python import sandbox
 for name in list(sys.modules):
  if (name in sandbox.dist27.MODULE_OVERRIDES):
   del sys.modules[name]
 sys.meta_path.insert(0, sandbox.StubModuleImportHook())
 sys.path_importer_cache = {}

def activate_sandbox ( ) : from google . appengine . tools . devappserver2 . python import sandbox for name in list ( sys . modules ) : if ( name in sandbox . dist27 . MODULE_OVERRIDES ) : del sys . modules [ name ] sys . meta_path . insert ( 0 , sandbox . StubModuleImportHook ( ) ) sys . path_importer_cache = { }
enables parts of the gae sandbox that are relevant .