change telnetlib to pexpect