def _saveToFile(self):
        path = str(QtGui.QFileDialog.getSaveFileName(self, 'Save File', '', '*.json'))
        #self.lastFilePath = path
        print str(self.classDict)
        with open(path, 'w') as f:
            json.dump(self.classDict, f)
        print 'Saved file ' + path
Write the class list to a JSON formatted text file
dataset/ETHPy150Open nasa/CrisisMappingToolkit/cmt/util/production_gui.py/FeatureTrainerWindow._saveToFile