exportClass.py now survives a reasonably challenging unittest, though nowhere near all corner cases are covered.