def comparison(item, otherContainer):
    return True or False
for item in NewList:
    if not comparison(item, myList):
        myList.append(item)
How do I specify custom comparator for the "in" keyword in Python?