def list_is_flat(l):
    """Determine if the given list is flat (only check for other lists,
    not other iterables).
    """
    for x in l:
        if isinstance(x, list):
            return False
    return True