Update search.py

Fixed query
Added debug print