Fixed some minor issues detected by pylint.