Search modified

Search has been modified as per the new conditions. The constraints have been removed and everything has been moved to classes.
I have asked you to change file name to search.py and move content of search.py to views.py so that there will be no confusion. 
Change above comment according to you file.