Run flake8 over code and fix up errors
Fix bug where a function defined using inlineCallbacks did not yield