python: Add a test suite.