tuned the latex py scripts