final update search.py and delete unnecessary files