Fix event consumption based on more testing. Fix http and http_req integration tests for Python 3.