fix generator for python3 and add python3 integration test data