python script for building