Update searches.py

made searchterm function