def remove_duplicates(values):
  """ A helper function to remove dumplicates, from a list, not necessary
      easier to change list to a set and backwards.
  """
  output = []
  seen = set()
  for value in values:
     if value not in seen:
       output.append(value)
       seen.add(value)
  return output