Fix some flake8 errors in EventLoopGrid which might also allow running with python 3.
flake8
EventLoopGrid