some code quality improvements using pylint