import itertools


def group_on_delimiter(iterable, delimiter):
    """Group elements separated by delimiter into chunks.

    group(['a', 'b', '', 'c', 'd', '', 'e'], '') => [['a', 'b'], ['c', 'd'], ['e']]
    """
    return [list(g) for is_delimiter, g in itertools.groupby(iterable, lambda el: el == delimiter) if not is_delimiter]