Start porting expect test to python