3rd initial incremental commit, this time passes runtests.sh

I realized that config.py was in fact non-trivial, and so reverted that
set of changes while keeping the overhauled ancestor code.

Sigh... sometimes I can be quite dumb

I would still request PixelOrange test this in his private subs, the more the better