def METHOD_NAME(self):
    try:
        with open(self.gui_prefs_file, 'w') as fp:
            fp.write(HEADER)
            self.parser.write(fp)
    except Exception as err:
        print(err, file=sys.stderr)