Tweaking the wexpect class and usage