reading output from pexpect sendline,child.sendline('python -V\r')