omeroweb flake8 cleanup: Remove unused variables (dev_5_0)

Removing unused variables throughout omeroweb

--rebased-from #2249