Creating a model and exporting to Python