There be tests ! And a massive code reorg to support the tests, And pep8 and pylint...