def unique(seq):
has = []<EOL>return [x for x in seq if not (x in has or has.append(x))]<EOL>
https://stackoverflow.com/questions/480214/how-do-you-remove-duplicates-from-a-list-in-whilst-preserving-order