support python 3

3 tests from test_producer_integration are failing with python 3 but it's usable now.