def flatten_list(unflattened_list):
    """
    Take list of iterables/non-iterables and outputs a list of non-iterables.
    """
    flattened_list = []
    for item in unflattened_list:
        if hasattr(item, '__iter__') and not isinstance(item, str):
            flattened_list.extend(item)
        else:
            flattened_list.append(item)
    return flattened_list
