py3 unicode fix for output_png key