code: def save_json2(data):
      
  
      ## convert everything to dicts
      ## skip _ipcluster cuz it's made new.
      datadict = OrderedDict([
          ("outfiles", data.__dict__["outfiles"]),
          ("stats_files", dict(data.__dict__["stats_files"])),
          ("stats_dfs", data.__dict__["stats_dfs"])
          ])
docs: save to json.