code: def save(self):
          
          data = str.encode( json.dumps(self.simpleAttrs, indent=4, sort_keys=True) )
          with open(self.filename, "wb") as f:
              f.write(data)
docs: save PlayerRecord settings to disk