Any structure in which the First object In is the First object Out.
To communicate with a shell, which is started once and runs in a separate process, I used Popen from subprocess. …