Read Kurtz' book...
Power Line - Is Barack Obama a socialist? Part One: "Third, when Obama went into electoral politics as a candidate for the Illinois state Senate, he did so as the hand-picked successor to the aforementioned Alice Palmer, an avowed socialist. (Palmer, however, decided to fight Obama for the seat after she lost a special election for Congress; Obama kept her off the ballot by successfully challenging her petition signatures). Palmer is the author of such articles as 'Socialism Is the Only Way Forward.' And she attended the Twenty-seventh Congress of the Communist Party of the Soviet Union in 1986.
Palmer picked Obama to succeed her after lengthy conversations with him. Moreover, Palmer, like Obama's other socialist supporters, was well aware of Obama's record as an activist (including the aspects of it described above) and of his political convictions. As Kurtz argues, it's difficult to believe that these savvy socialists would have trusted Obama with their seat in the Illinois Senate unless they were convinced, as Madeline Talbot said she was, that he was one of them.
Obama, then, was a socialist when he left college. As of 1996, there is no good indication that he had abandoned socialism. To the contrary, the best evidence is that he was still a socialist at that time."