Bring PyLint code quality to 10 and improve tests.