possible fix for utf-8 encode errors in py postprocess