How 200 years of election dysfunction helped shape South Africa