search.py updates