Switched instances of file() to open() to allow the parser to run in python 3.4