add code to run latex through python.