def dumper(obj): if isinstance(obj, set): return list(obj) return obj