code: def save_local_metadata(self):
          
          # save to the set local path and add .json
          with open(self.filepath + '.json', 'w+') as outfile:
              json.dump(self._prep_metadata(), outfile, indent=4)
docs: save all the exposed variables to a json file