def update_meta(self, meta, args): print("Updating Meta") meta_file_handle = open(args.meta_file, "w") json.dump(meta, meta_file_handle, cls=JSONEncoder, sort_keys=True, indent=4) meta_file_handle.close() self.patch("contentupload", args.upload_id, meta=meta)