Fixed script to build with python enabled