Corrected (most) pep8 issues

refs #16479

Didn't fix all the problems as they're the json bits, and I don't think
indenting lines works well with it