some pylint fixes to improve code quality