Code to turn python equations to latex equations with examples