pyflakes, pep8, and docstrings for gafftools.py