old search.py