Corrected minor issues detected by pylint.