Made a typo and wrote model_to_dict rather that model.to_dict

Should probably rethink that...