deal w/ shadowing of built-ins; fix all pylint W0622 problems

* add pragma comments where shadowing unavoidable
* apply variable renaming refactoring elsewhere