rewrote _freeze_packages()

PEP8 (validated with pyflakes), added a `git add` call to put the requirements file in the repo.