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.
@joshmoore I think we could use a `pytest` decorator to handle the conditions. It would be good to know for sure which exceptions would be expected from which versions of Ice.