Useful Idiots
Communists supported the Mullahs when they were fighting the Shah - who was actually very "progressive", as he nominated a woman as supreme court judge etc.
The second the Mullahs were in charge, they prosecuted their former communist allies, jailing and executing them.