scripts/*.py pylint and pep warnings addressed