revise scrape.py so malformed.txt has no blank lines