Fix warnings regarding `logging` from pylint.
Fix some long line and trailing whitespace warnings pointed out by pylint.