Fix some pylint issues

This pull request fixes some pylint fixes. There are still some remaining. Hidden among these commits is a change in output of `make pylint`, which would no longer print the long report, but only the warning lines. (If this is controversial, I can break that out to a separate pull request :-)).