South Africa captured global attention for all the right reasons, from being named the friendliest country in the world to making scientific breakthroughs.