pylint fixes.

remove trailing whitespace
properly format log.debug() arguments
Merge pull request #12055 from UtahDave/develop

pylint fixes.