Omero src flake8 4

With @ximenesuk's gateway fixes merged in the mainline, this PR should be the last one required to complete the flake8'ing of the `src` folder for OMERO.py.