Activate test_generator.py tests under Python3

Change-Id: Ia240b3b6815220ee8f187e8029ee118ced6fa23a
Merge "Activate test_generator.py tests under Python3"