DISPATCH-1377: Fix test to work on python3-only system

Use substitution of PY_STRING to locate discovered python executable.
Test for required 'ast' module. If not present then skip test.
Print full error text from teardown.
This closes #609
3 files changed