Several PyLint fixes.