Create extend_models.py

For compilation of the open source code.