extracting stderr from pexpect,child.expect('hi')