import subprocess
import sys
progA = subprocess.Popen('a', stdin=subprocess.PIPE, stdout=subprocess.PIPE)
sys.stdin = progA.stdout
sys.stdout = progA.stdin
How can I get those two processes (programs) talk to each other directly using pipes?