Pylint issue identified with file.close. First file is a reserved keyword,
so redefining it. Second, the close can be done automatically on cleanup
but also more ideomatically via the "with" statement.
Pylinted the code and raised score up close to 10.
Formatting and flake8 tweaks.
Merge branch 'dneiss-dn'