def getIterable(dict_or_list):
    """
    Returns an iterable given a dictionary of a list.
    """
    if isinstance(dict_or_list, dict):
        iterable = list(dict_or_list.values())
    elif isinstance(dict_or_list, list):
        iterable = dict_or_list
    else:
        raise Exception("Unknown type '" + str(type(dict_or_list)) + "'")
    
    return iterable