a simple search engine in python