def toplevel_wrapper(*args, **kwargs):
 return ndb.toplevel(*args, **kwargs)

def toplevel_wrapper ( * args , ** kwargs ) : return ndb . toplevel ( * args , ** kwargs )
enables a wsgi application to not exit until all its asynchronous requests have finished .