Expect: Scripts for Controlling Interactive Processes (1991) [pdf]
tsapps.nist.gov
tsapps.nist.gov
Otherwise, I feel that a reason for favoring pexpect is because Python is not TCL and 'a lot of code' means using others' libraries for which you could not find TCL alternatives.
I automated the login process to a group of servers and then it automatically saves all interaction to a separate file based on the ip address.