editted searchbot.py