def chunks(l, n):
    """
    Yield successive n-sized chunks from l.

    Parameters
    ----------

    l : list

    n : size of chunk

    Returns
    -------
    generator
    """
    for i in range(0, len(l), n):
        yield l[i:i + n]
