Report question

Question: Why is Pexpect intermittently hanging (not detecting EOF) after executing certain commands?