Update parser.py

added network for parse_file function.