use pexpect istead of scipttest