make pylint happy

Shadowed variables can result in side effects, so this prevents it. Now it's a pain to greenify all, I agree.