Reformat code to comply with  flake8 rules.

Spacing, line lengths adjusted.
Minimised #noqa annotaions.
Adjusted .gitignore to ignore private data files.

Change-Id: Idcb30df36af4a6f3f51edb75391b9ed271735671