Obama praises Mandela's courage in S. Africa