Update WritingCorpus.py

Updated using 'with' and os.popen for gzip