def fill_gaps(*args, **kwargs):
 generator = fill_gaps_generator(*args, **kwargs)
 return list(generator)

def fill_gaps ( * args , ** kwargs ) : generator = fill_gaps_generator ( * args , ** kwargs ) return list ( generator )
listify the generator returned by fill_gaps_generator for memoize .