Fixed two problems reported by pylint and suppressed a pylint warning.  Terry, pls check.
Fixed or disabled several pylint warnings.