A simple search engine in python