def remove_empty_dicts(iter_of_dicts):
    """Remove empty dictionaries from an iterable of dicts.

    :param iter_of_dicts: iterable of dicts
    :return: iterable with empty dicts removed
    """
    return filter(lambda x: len(x) > 0, iter_of_dicts)