The problem I posted recently has a solution!
(The POSIX pipes problem: "Demonize an interactive command-line application (a python interpreter) and let other processes communicate with it using named pipes. The session should withstand several connections, one connection at a time.")