[PD] Python socket to PD