I've always found named pipes to be more trouble than they are worth. The problem is that since they are actual, real files in the file system, you have to be careful to remove them when you're done. This makes things complicated - especially during the debugging process.
Instead, I've always used TCPIP. It works just like a pipe and is "self-cleaning".
I've not done this in Python, but it is straightforward in C, using "select". I'm assuming Python has some way of accessing the same underlying system calls as you can do in C.
Note: The reason I mention "select" is that you usually want to be able to do this without blocking. That is, you have a loop that checks periodically with "select" to see if there's anything on the TCPIP connection; else you can do your regular processing.
"L'enfer, c'est les autres"
G fytc hsqr rum umpbq rm qyw rm rfc kmbq md rfgq dmpsk:
J lnacjrw njbruh-carppnanm vxm rb mnuncrwp vh yxbcb!