python.snippets: testsuite, conform to linters