India's communists appeared set to stage a comeback in Kerala state, as they took winning leads in 87 of the 140 constituencies in the assembly elections.