[PD] pyext detach method crashes pd with gem/pdp