code: def save_rules(self, op_file):
          
          with open(op_file, 'w') as f:
              for m in self.maps:
                  f.write(m.format_for_file_output())
docs: save the rules to file after web updates or program changes