def listify_helper(*args, **kw):
    return wrapper(fn(*args, **kw))
return listify_helper
if fn is None:
    return listify_return
return listify_return(fn)
Is there a library function in Python to turn a generator-function into a function returning a list?