build.py script (untested)