CLN PEP8 on format.py
Merge pull request #8286 from iwschris/pep8_format

CLN Pep8 on format.py