pmt: adds ability to handle unicode input with pmt_to_python.