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

        Parameters
        ----------
        l: iterable
            Iterable to slice into chunks.
        n: int
            Maximum size of each chunk.
        """
    for i in range(0, len(l), n):
        yield l[i:i + n]
