def _should_keep_module(name):
 return ((name in ('__builtin__', 'sys', 'codecs', 'encodings', 'site', 'google', 'crontab', 'pwd')) or name.startswith('google.') or name.startswith('encodings.') or ('mysql' in name.lower()))

def _should_keep_module ( name ) : return ( ( name in ( '__builtin__' , 'sys' , 'codecs' , 'encodings' , 'site' , 'google' , 'crontab' , 'pwd' ) ) or name . startswith ( 'google.' ) or name . startswith ( 'encodings.' ) or ( 'mysql' in name . lower ( ) ) )
returns true if the module should be retained after sandboxing .