What type is your output variable?
Python sets are what you need. Declare output like this:
output = set() # initialize an empty set
and you're ready to go adding elements with output.add(elem)
and be sure they're unique.
Warning: sets DO NOT preserve the original order of the list.