parse.py now works after using 'a' to append lines