docs: def stringify(data):
      """
      Ensure all values in the dictionary are strings, except for the value for `candidate` which
      should just be an integer.
  
      :param data: a list of addresses in dictionary format
      :return: the same list with all values except for `candidate` count as a string
      """
  
      def serialize(k, v):
          if k == "candidates":
              return int(v)
  
          if isinstance(v, numbers.Number):
              if k == "zipcode":
                  # If values are presented as integers then leading digits may be cut off,
                  # and these are significant for the zipcode. Add them back.
                  return str(v).zfill(5)
  
              return str(v)
  
          return v
  
      return [{k: serialize(k, v) for k, v in json_dict.items()} for json_dict in data]