Also refactor the result submission a bit to share the code
between CLI and module modes. This depends on the very latest
bits in wikitcms git master, will not work at all without
them.
This should be substantially more efficient - it should make
only two wiki roundtrips per result page, and only init and
login to the wiki once. Going via relval requires a wiki init
and then two roundtrips for *each result*.
How about using collections.namedtuple() instead? One can still use it as a regular tuple, but it has the added bonus of accessibility by key, thus removing the "magical constants" as at lines 53, and 72, and making the code more readable and maintainable.