although you set `ensure_ascii=False` it's not handling non-western characters well fixed it with ` import io` `with io.open(self.out_file, "w", encoding='utf-8') as f:`
although you set
ensure_ascii=Falseit's not handling non-western characters wellfixed it with
import iowith io.open(self.out_file, "w", encoding='utf-8') as f: