pylint fixes.

remove trailing whitespace
properly format log.debug() arguments