Update inverted_index.py