updates to buildg3d python script