def get_final_values(iterable):
    """Returns every unique final value (non-list/tuple/dict/set) in an iterable.
    
    For dicts, returns values, not keys."""
    ret = list()
    if type(iterable) == dict:
        return(get_final_values(list(iterable.values())))
    for entry in iterable:
        if (type(entry) == tuple or type(entry) == list or type(entry) == set):
            ret.extend(get_final_values(entry))
        elif (type(entry) == dict):
            ret.extend(get_final_values(entry.values()))
        else:
            ret.extend(iterable)
    return(set(ret))