def dictvals(dictionary):
    """
    Returns the list of elements in a dictionary, unpacking them if they are inside a list
    :param dictionary: the dictionary to be unpacked
    :returns :[list]
    """
    try:
        return [x[0] for x in dictionary.values()]
    except IndexError:
        return list(dictionary.values())
    except TypeError:
        return list(dictionary.values())