Pylint cleanups.
How we run pylint.
Some tweaks from code review: more comments; names for dev-only switches