Michelle Bachelet , a Socialist , pediatrician and former political prisoner and exile , was sworn in on Saturday as the first woman to be president of Chile , the culmination of its long and painful journey from repression and dictatorship to democracy .