Add postings list writing to task1/index.py