Fixed problems reported by pylint.