updated build.py script