Added generation of model_params.py after swarm.

Fixes #736