Update search.py

str is a keyword. Refactored variable to search_str.