PEP8 fixes in the base app.  Fixes #1577.