[PD-ot] Python method substitution