South Africa's recent by-elections showed unexpected results, with political shifts and varying voter turnouts.