def uniquify(s, delimiter=";"):
  """
  Helper function
  It simplifies a delimited string with redundant fields
  if one unique field exist, a string is returned
  otherwise a list of the unique elements from the string is returned
  """

  s = s.split(delimiter)
  s = list(set(s))
  if len(s)==1:
    return s[0]
  
  return s