def grouper(iterable, n, fillvalue=None):
    """Collect data into fixed-length chunks or blocks"""
    from .compat.moves import zip_longest
    args = [iter(iterable)] * n
    return zip_longest(*args, fillvalue=fillvalue)
