[Bug 50004] Python script hangs when pipe IPC is used