Fixes some E501 and E128 flake8 errors.
Makes dbnav flake8 clean. Fixes failing tests.