Compatibility with Python 2.7

Tweaked the file open modes in LatexReport.py so that it is compatible with Python 2.7