Create a Python function that takes a list and returns a list of the unique elements of that list.
myList = [1, 2, 3, 4, 5, 1, 2]
def uniqueList(myList):
    uniqueList = []
    for el in myList:
        if el not in uniqueList:
            uniqueList.append(el)
    return uniqueList