def METHOD_NAME(iterable):
    """
    Flatten a nested iterable such as a list of lists, keeping strings intact.
    :param iterable: The iterable to be flattened
    :returns: generator
    """
    for i in iterable:
        if hasattr(i, "__iter__") and not isinstance(i, str):
            for j in METHOD_NAME(i):
                yield j
        else:
            yield i