updated search.py