fix error reported by pylint