def _list_has_duplicates(lst):
    """Check if a list has only unique elements
       Returns a list of duplicated elements"""
    dupe = []
    for x in lst:
        if lst.count(x) != 1:
            dupe.append(x)
    return dupe
