In recent years, Mexico has taken one of the most important steps towards modernizing its energy sector.