flake8: fix scripts/dbhelpers
flake8: add helper to scripts/dbhelpers

This functional change was one of the few ways to sensibly address
these two complicated conditions that would not wrap and indent in
any clear way. There may be other ways of addressing this but this
seemed fairly self-contained to the one class.
flake8: fix scripts/testdb_create
flake8: fix pytest_fixtures
flake8: fix utils
flake8: fix gateway/init - pep8 error E261
flake8: fix gateway/init - pep8 error E211
flake8: fix gateway/init - pep8 error E231
flake8: fix gateway/init - pep8 error E128
flake8: fix gateway/init - pep8 error E302
flake8: fix gateway/init - pep8 error E303
flake8: fix gateway/init - pep8 error E202
flake8: fix gateway/init - pep8 error E225
flake8: fix gateway/init - pep8 error E301
flake8: fix gateway/init - pep8 error E703
flake8: fix gateway/init - pep8 error E201
flake8: fix gateway/init - pep8 error E122, E126 & E127
flake8: fix gateway/init - pep8 error E502
flake8: fix gateway/init - pep8 error E222, E225, E228 & E251
flake8: fix gateway/init - pep8 error E271 & E701