code: def Save(self, name_file):
          
          with open(name_file+'.bms', 'wb') as file:
              model = dill.dump(self, file)
docs: name_file: name of the file without extension.
              The extension .bms is added by function