omero gateway flake8 cleanup: Fix failures and warnings

Fix `flake8` failures and warnings throughout omero gateway