code: def save(self, fp=None):
          
          self.storage.settings['markov'] = self.get_settings_json()
          self.storage.save(fp)
docs: Save to file.
  
          Parameters
          ----------
          fp : `file`, optional
              Output file.