omero gateway flake8 cleanup: Fix failures and warnings