fix pylint warnings

rename local variable and arguments shadowing other identifiers