Merge "Make generate-operator-out.py compatible with Python 3.x"