[PATCH] Fix problems reported by pylint.