Modified parse.py to create file