Reverted changes to cpp_helpers.cc and made code reviews to python_geenerator.cc