Mr. Talabani 's role as president is largely ceremonial , but he has been influential in political efforts to try to heal Iraq 's sectarian divisions .