Use new style except statements in tests
Reduce delay in expect greed tests
Make test case base compatible with Python 3
Start reorganising into package
Changes towards Python 3 compatibility.