docs: def save(self, saveLocation, outName):
          """
          Saves a featureset object to a feature class
          Input:
             saveLocation - output location of the data
             outName - name of the table the data will be saved to
                  Types:
                      *.csv - CSV file returned
                      *.json - text file with json
                      * If no extension, a shapefile if the path is a
                          folder, a featureclass if the path is a GDB
  
          """
          filename, file_extension = os.path.splitext(outName)
          if (file_extension == ".csv"):
              res = os.path.join(saveLocation,outName)
              import sys
              if sys.version_info[0] == 2:
                  access = 'wb+'
                  kwargs = {}
              else:
                  access = 'wt+'
                  kwargs = {'newline':''}
              with open(res, access, **kwargs) as csvFile:
                  import csv
                  f = csv.writer(csvFile)
                  fields = []
                  #write the headers to the csv
                  for field in self.fields:
                      fields.append(field['name'])
                  f.writerow(fields)
  
                  newRow = []
                  #Loop through the results and save each to a row
                  for feature in self:
                      newRow = []
                      for field in self.fields:
                          newRow.append(feature.get_value(field['name']))
                      f.writerow(newRow)
                  csvFile.close()
              del csvFile
          elif (file_extension == ".json"):
              res = os.path.join(saveLocation,outName)
              with open(res, 'wb') as writer:
  
                  json.dump(self.value, writer, sort_keys = True, indent = 4, ensure_ascii=False)
                  writer.flush()
                  writer.close()
              del writer
  
          else:
              tempDir =  tempfile.gettempdir()
              tempFile = os.path.join(tempDir, "%s.json" % uuid.uuid4().hex)
              with open(tempFile, 'wt') as writer:
                  writer.write(self.toJSON)
                  writer.flush()
                  writer.close()
              del writer
              res = json_to_featureclass(json_file=tempFile,
                                         out_fc=os.path.join(saveLocation, outName))
              os.remove(tempFile)
          return res