Fix some issues reported by pylint.