Flake8 remaining Python integration tests

This completes the flake8 fixing of the Python integration tests. The tests should still pass barring the usual intermittent fails, they should all pass flake8 checks.
Ran the Python integration tests on a 10.10 node with Ice 3.5. Got the following error (which we may want to add to the list):

```
___________________________ TestTickets3000.test2628 ___________________________
self = <test.integration.test_tickets3000.TestTickets3000 object at 0x10f344090>
    def test2628(self):
        q = self.root.sf.getQueryService()
        sql = "select s.uuid "\
              "from EventLog evl join evl.event ev join ev.session s"
        # This was never supported
        with pytest.raises((Ice.UnmarshalOutOfBoundsException, Ice.UnknownUserException)):
>           q.findAllByQuery(sql, None)
test/integration/test_tickets3000.py:91: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
self = b8eafca4-d010-43b5-b68b-c797cddc927e/9b0b23ab-c53d-4a26-982d-6e7e0b55ea6aomero.api.IQuery -t -e 1.0:tcp -h 10.2.1.145 -p 61308
query = 'select s.uuid from EventLog evl join evl.event ev join ev.session s'
params = None, _ctx = None
    def findAllByQuery(self, query, params, _ctx=None):
>       return _M_omero.api.IQuery._op_findAllByQuery.invoke(self, ((query, params), _ctx))
E       UnknownLocalException: exception ::Ice::UnknownLocalException
E       {
E           unknown = ../../include/Ice/BasicStream.h:310: Ice::EncapsulationException:
E       protocol error: illegal encapsulation
E         0 IceUtil::Exception::Exception(char const*, int) in libIceUtil.3.5.1.dylib
E         1 Ice::LocalException::LocalException(char const*, int) in libIce.3.5.1.dylib
E         2 Ice::EncapsulationException::EncapsulationException(char const*, int) in libIce.3.5.1.dylib
E         3 IceInternal::BasicStream::throwEncapsulationException(char const*, int) in libIce.3.5.1.dylib
E         4 IceInternal::BasicStream::readEncaps(unsigned char const*&, int&) in libIce.3.5.1.dylib
E         5 IceProxy::Ice::Object::___end_ice_invoke(std::__1::pair<unsigned char const*, unsigned char const*>&, IceInternal::Handle<Ice::AsyncResult> const&) in libIce.3.5.1.dylib
E         6 Ice::Callback_Object_ice_invoke<Glacier2::RequestQueue, IceUtil::Handle<Glacier2::Request> >::__completed(IceInternal::Handle<Ice::AsyncResult> const&) const in glacier2router
E         7 Ice::AsyncResult::__response() in libIce.3.5.1.dylib
E         8 IceInternal::OutgoingAsync::__finished() in libIce.3.5.1.dylib
E         9 Ice::ConnectionI::dispatch(IceUtil::Handle<Ice::ConnectionI::StartCallback> const&, std::__1::vector<Ice::ConnectionI::SentCallback, std::__1::allocator<Ice::ConnectionI::SentCallback> > const&, unsigned char, int, int, IceInternal::Handle<IceInternal::ServantManager> const&, IceInternal::Handle<Ice::ObjectAdapter> const&, IceInternal::Handle<IceInternal::OutgoingAsync> const&, IceInternal::BasicStream&) in libIce.3.5.1.dylib
E        10 Ice::ConnectionI::message(IceInternal::ThreadPoolCurrent&) in libIce.3.5.1.dylib
E        11 IceInternal::ThreadPool::run(IceUtil::Handle<IceInternal::ThreadPool::EventHandlerThread> const&) in libIce.3.5.1.dylib
E        12 IceInternal::ThreadPool::EventHandlerThread::run() in libIce.3.5.1.dylib
E        13 startHook(void*) in libIceUtil.3.5.1.dylib
E        14 _pthread_body() in libsystem_pthread.dylib
E        15 _pthread_body() in libsystem_pthread.dylib
E        16 thread_start() in libsystem_pthread.dylib
E       }
target/omero_api_IQuery_ice.py:213: UnknownLocalException
```