I can't seem to get that to work either.
child =
pexpect.spawn('/bin/sh',args=['-c','/usr/bin/ssh','-t','-o','StrictHostKeyChecking
no',host,command,'|','awk','{print %s:$0}'%host], timeout=30)
Complains its getting the wrong arguments to ssh.
Eli