pmt: support conversion of basic pmt pairs to python