Use python3 if available to run gen_git_source.py.
Use python3 if available to run gen_git_source.py.

gen_git_source.py fails with an "ImportError: No module named builtins" on a default installation of Python 2 (at least, the one that comes with macOS). This can be worked around by installing the "future" package from pip. However, instead of requiring users to go through this extra step, we can simply run the script using Python 3 if it's installed. The script works on a default installation of Python 3, without requiring extra packages.

frreiss/tensorflow-fred,karllessard/tensorflow,arborh/tensorflow,gautam1858/tensorflow,renyi533/tensorflow,jhseu/tensorflow,tensorflow/tensorflow-pywrap_saved_model,annarev/tensorflow,adit-chandra/tensorflow,Intel-tensorflow/tensorflow,aldian/tensorflow,aam-at/tensorflow,gunan/tensorflow,davidzchen/tensorflow,xzturn/tensorflow,yongtang/tensorflow,frreiss/tensorflow-fred,davidzchen/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,tensorflow/tensorflow-pywrap_tf_optimizer,karllessard/tensorflow,gautam1858/tensorflow,renyi533/tensorflow,arborh/tensorflow,annarev/tensorflow,freedomtan/tensorflow,tensorflow/tensorflow,petewarden/tensorflow,Intel-tensorflow/tensorflow,renyi533/tensorflow,Intel-tensorflow/tensorflow,jhseu/tensorflow,adit-chandra/tensorflow,Intel-tensorflow/tensorflow,renyi533/tensorflow,gautam1858/tensorflow,aam-at/tensorflow,aam-at/tensorflow,aldian/tensorflow,tensorflow/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,freedomtan/tensorflow,petewarden/tensorflow,tensorflow/tensorflow,freedomtan/tensorflow,Intel-Corporation/tensorflow,paolodedios/tensorflow,karllessard/tensorflow,yongtang/tensorflow,gunan/tensorflow,gunan/tensorflow,paolodedios/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,Intel-tensorflow/tensorflow,adit-chandra/tensorflow,arborh/tensorflow,gautam1858/tensorflow,tensorflow/tensorflow-pywrap_saved_model,jhseu/tensorflow,xzturn/tensorflow,frreiss/tensorflow-fred,paolodedios/tensorflow,cxxgtxy/tensorflow,adit-chandra/tensorflow,annarev/tensorflow,aldian/tensorflow,freedomtan/tensorflow,tensorflow/tensorflow,tensorflow/tensorflow,tensorflow/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,adit-chandra/tensorflow,aldian/tensorflow,gautam1858/tensorflow,arborh/tensorflow,Intel-tensorflow/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,paolodedios/tensorflow,gautam1858/tensorflow,cxxgtxy/tensorflow,petewarden/tensorflow,aam-at/tensorflow,Intel-tensorflow/tensorflow,ppwwyyxx/tensorflow,Intel-Corporation/tensorflow,frreiss/tensorflow-fred,annarev/tensorflow,jhseu/tensorflow,aam-at/tensorflow,ppwwyyxx/tensorflow,jhseu/tensorflow,Intel-Corporation/tensorflow,tensorflow/tensorflow-pywrap_saved_model,xzturn/tensorflow,paolodedios/tensorflow,tensorflow/tensorflow,tensorflow/tensorflow,ppwwyyxx/tensorflow,tensorflow/tensorflow,aam-at/tensorflow,cxxgtxy/tensorflow,adit-chandra/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,xzturn/tensorflow,renyi533/tensorflow,adit-chandra/tensorflow,xzturn/tensorflow,frreiss/tensorflow-fred,Intel-tensorflow/tensorflow,xzturn/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,paolodedios/tensorflow,aldian/tensorflow,karllessard/tensorflow,yongtang/tensorflow,karllessard/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,frreiss/tensorflow-fred,jhseu/tensorflow,annarev/tensorflow,aam-at/tensorflow,yongtang/tensorflow,xzturn/tensorflow,tensorflow/tensorflow-pywrap_saved_model,freedomtan/tensorflow,annarev/tensorflow,karllessard/tensorflow,yongtang/tensorflow,paolodedios/tensorflow,Intel-Corporation/tensorflow,adit-chandra/tensorflow,petewarden/tensorflow,annarev/tensorflow,aam-at/tensorflow,yongtang/tensorflow,gunan/tensorflow,yongtang/tensorflow,Intel-tensorflow/tensorflow,davidzchen/tensorflow,arborh/tensorflow,yongtang/tensorflow,aam-at/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,ppwwyyxx/tensorflow,gautam1858/tensorflow,freedomtan/tensorflow,xzturn/tensorflow,Intel-Corporation/tensorflow,petewarden/tensorflow,petewarden/tensorflow,cxxgtxy/tensorflow,aam-at/tensorflow,petewarden/tensorflow,petewarden/tensorflow,xzturn/tensorflow,karllessard/tensorflow,freedomtan/tensorflow,ppwwyyxx/tensorflow,xzturn/tensorflow,ppwwyyxx/tensorflow,karllessard/tensorflow,jhseu/tensorflow,renyi533/tensorflow,cxxgtxy/tensorflow,freedomtan/tensorflow,gautam1858/tensorflow,tensorflow/tensorflow-pywrap_saved_model,ppwwyyxx/tensorflow,sarvex/tensorflow,renyi533/tensorflow,aldian/tensorflow,xzturn/tensorflow,davidzchen/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,paolodedios/tensorflow,tensorflow/tensorflow,aam-at/tensorflow,sarvex/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,gunan/tensorflow,cxxgtxy/tensorflow,petewarden/tensorflow,ppwwyyxx/tensorflow,sarvex/tensorflow,gunan/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,annarev/tensorflow,sarvex/tensorflow,davidzchen/tensorflow,arborh/tensorflow,gautam1858/tensorflow,paolodedios/tensorflow,aldian/tensorflow,cxxgtxy/tensorflow,tensorflow/tensorflow-pywrap_saved_model,paolodedios/tensorflow,xzturn/tensorflow,tensorflow/tensorflow-pywrap_saved_model,frreiss/tensorflow-fred,gunan/tensorflow,arborh/tensorflow,jhseu/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,gunan/tensorflow,gunan/tensorflow,frreiss/tensorflow-fred,renyi533/tensorflow,tensorflow/tensorflow-pywrap_saved_model,davidzchen/tensorflow,arborh/tensorflow,sarvex/tensorflow,jhseu/tensorflow,aldian/tensorflow,Intel-tensorflow/tensorflow,adit-chandra/tensorflow,ppwwyyxx/tensorflow,freedomtan/tensorflow,Intel-tensorflow/tensorflow,renyi533/tensorflow,sarvex/tensorflow,arborh/tensorflow,annarev/tensorflow,annarev/tensorflow,cxxgtxy/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,tensorflow/tensorflow-pywrap_saved_model,sarvex/tensorflow,annarev/tensorflow,arborh/tensorflow,sarvex/tensorflow,gautam1858/tensorflow,Intel-Corporation/tensorflow,gunan/tensorflow,karllessard/tensorflow,Intel-Corporation/tensorflow,jhseu/tensorflow,gautam1858/tensorflow,frreiss/tensorflow-fred,adit-chandra/tensorflow,frreiss/tensorflow-fred,adit-chandra/tensorflow,gunan/tensorflow,ppwwyyxx/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,gunan/tensorflow,tensorflow/tensorflow-pywrap_saved_model,yongtang/tensorflow,adit-chandra/tensorflow,frreiss/tensorflow-fred,freedomtan/tensorflow,ppwwyyxx/tensorflow,petewarden/tensorflow,tensorflow/tensorflow,arborh/tensorflow,ppwwyyxx/tensorflow,tensorflow/tensorflow-pywrap_saved_model,freedomtan/tensorflow,jhseu/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,Intel-Corporation/tensorflow,davidzchen/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,tensorflow/tensorflow-pywrap_tf_optimizer,gautam1858/tensorflow,frreiss/tensorflow-fred,freedomtan/tensorflow,davidzchen/tensorflow,yongtang/tensorflow,davidzchen/tensorflow,yongtang/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,paolodedios/tensorflow,davidzchen/tensorflow,renyi533/tensorflow,aam-at/tensorflow,renyi533/tensorflow,petewarden/tensorflow,davidzchen/tensorflow,karllessard/tensorflow,renyi533/tensorflow,davidzchen/tensorflow,karllessard/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,arborh/tensorflow,petewarden/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,jhseu/tensorflow