code: def check_geo(geo):
      
      geo = copy.copy(geo)
  
      def fix_item(item):
          if isinstance(item, six.binary_type):
              return item.decode()
          return item
  
      def fix_list(lst):
          return [fix_item(i) for i in lst]
      if isinstance(geo.reduce, six.binary_type):
          geo.reduce = geo.reduce.decode()
      for key in geo.kwargs.keys():
          if geo.kwargs[key] is not None:
              if isinstance(geo.kwargs[key], (list, np.ndarray)):
                  geo.kwargs[key] = fix_list(geo.kwargs[key])
              elif isinstance(geo.kwargs[key], six.binary_type):
                  geo.kwargs[key] = fix_item(geo.kwargs[key])
      return geo
docs: Checks a geo and makes sure the text fields are not binary