fixed errors reported by pylint