support python 3

3 tests from test_producer_integration are failed but it's usable now