pmt: add python getCaIds wrapper

and move it to a SWIG interface file