Mexican inflation cooled to 4.01% in the year through September as consumer prices for energy dropped and food price rises were lower.