search.py updated