Building models with python