Latex output through Python (used to generate on the fly latex file of results)