code: def save(self, filename, wildcard='*', verbose=False):
          '''save parameters to a file'''
          f = open(filename, mode='w')
          k = list(self.keys())
          k.sort()
          count = 0
          for p in k:
              if p and fnmatch.fnmatch(str(p).upper(), wildcard.upper()):
                  f.write("%-16.16s %f\n" % (p, self.__getitem__(p)))
                  count += 1
          f.close()
          if verbose:
              print("Saved %u parameters to %s" % (count, filename)f save(self, filename, wildcard='*', verbose=False):
          '''save parameters to a file'''
          f = open(filename, mode='w')
          k = list(self.keys())
          k.sort()
          count = 0
          for p in k:
              if p and fnmatch.fnmatch(str(p).upper(), wildcard.upper()):
                  f.write("%-16.16s %f\n" % (p, self.__getitem__(p)))
                  count += 1
          f.close()
          if verbose:
              print("Saved %u parameters to %s" % (count, filename))
docs: save parameters to a file