Adopt Python Pexpect version 3.1

Signed-off-by: Rudá Moura <ruda.moura@gmail.com>