def uniqify(list_):
  "inefficient on long lists; short lists only. preserves order."
  a=[]
  for x in list_:
    if x not in a: a.append(x)
  return a
inefficient on long lists; short lists only. preserves order.