def generator_chunker(gen, chunk_size):
    """
    Create generator to yield lists of items at a time of size: chunk_size 
    """
    try:
        while True:
            chunk = []
            while len(chunk) < chunk_size:
                chunk.append(next(gen))
            yield chunk
    except StopIteration:
        yield chunk
