Latex build script in python