Update parser.py

eopn file with open method (py3 error)