Split an iterable that supports indexing into chunks of 'chunksize'.

def splitter(iterable, chunksize=60):
    """Split an iterable that supports indexing into chunks of 'chunksize'."""
    return (iterable[0+i:chunksize+i]
            for i in range(0, len(iterable), chunksize))