You are an expert at summarizing long articles. Proceed to summarize the following text: 
south africa 's parliament on thursday elected kgalema motlanthe as the nation 's third post-apartheid president , after the dramatic ouster of thabo mbeki by his own party .
south african parliament elects motlanthe as president