def custom_object_scope(*args):
 return CustomObjectScope(*args)

def custom_object_scope ( * args ) : return CustomObjectScope ( * args )
provides a scope that changes to _global_custom_objects cannot escape .