Update scrape_and_write.py