functioning search.py, just slow, linked to model.py, linked to app.py