When Bernie Sanders thought Castro and the Sandinistas could teach America a lesson