The Tudeh and Fedaian were more important in finishing off the government than theocracy supporters, and even the powerful People's Mujahedin (which was Islamist) did not want a theocracy.
See: https://en.wikipedia.org/wiki/Iranian_Revolution#Opposition_...
This is really simplifying a complex thing, but I would not make the claim that Tudeh was more important than theocratic supporters and even still, they supported the creation of an Islamic republic and supported Khomeini.
Yes, the MEK was Islamist, but like the other two you mentioned, they were also Marxist. They were directly opposed to the Ayatollah because he usurped their power with the poor and promoted what they saw as a bourgeoisie agenda, securing property rights and free enterprise.
This illustrates both a problem with trying to retroactively jam events into ideological frameworks, and a tragedy of revolutionary parties. At the time, the Shah's government was percieved as authoritarian - that's why there was a revolution in the first place. But it turns out that the violent overthrow of a government (internally or externally) tends to result in the new government exerting extreme force to maintain its position against ""counter-revolutionaries"". Perhaps the unique thing about the American revolution is that it wasn't followed by a Terror, and the civil war was deferred for another century by interpreting "all men are created equal" to mean "not all men".