name 'model' is not defined in jupyter notebook