example:
from subprocess import *
proc = Popen(['cat','-'], stdin = PIPE, stdout = PIPE)
msg = 'Through STDIN TO STDOUT'
stdout_value = proc.communicate(msg)[0]
print 'stdout:', stdout_value
output : stdout: Through STDIN TO STDOUT
in this example I have passed the msg string to the called program(cat -) as stdin, what if the called program was the (passwd) command, is it possible to pass two stdin([password value] and [verification password value]) to it ?