Use Python 2.x interpreter in build scripts.
(cherry picked from commit e36a6ef8234db8d188e0a4d26880fc1431b4d3ef)