convert to python code, unfinished
Done!! The first retrieval engine on Python