Minor cleanups to heat inventory script

Minor cleanups to remove unused variables and imports.
Adding license header
Minor cleanup for `tox -epep8` to pass

Minor cleanup to each file for pep8 tests to pass.