using pexpect to remove interactive stops
using pexpect to remove interactive stops