Fix issues found by pylint.