Fix typos and improve pylint score.