build python script