Despite being in charge of most of South America for the last 15 years, the continent's leftist parties are in trouble.