I think he’s a Marxist-Leninist in his heart and the Iranian regime in its secular form underneath the ayatollahs who have supreme command is also Marxist-Leninist, hence the friendly attitude.
Barack and his freudian ‘my muslim faith Christian faith’ slip
https://www.youtube.com/watch?v=nMhB-CwF4yc