Simple alternative for pexpect