Modified the python build script generator.