def Unify(l):
 seen = {}
 return [seen.setdefault(e, e) for e in l if (e not in seen)]

def Unify ( l ) : seen = { } return [ seen . setdefault ( e , e ) for e in l if ( e not in seen ) ]
removes duplicate elements from l .