pyloxi: add basic test cases for of11 and of12

Also fixes minor bugs when importing those modules, and adds a check-py target
to run all the unit tests against the generated code.
pyloxi: add loxi.version_names