Python script to build a basic model file