I think in his last interview (for Filmfax), Wah Chang stated that a sliding magnet was used to create the effect of the snake's tongue flickering.