Try this instead (screen_name will accept @BarackObama
, BarackObama
or barackobama
):
print [s.text for s in api.GetUserTimeline(screen_name='@BarackObama')]
(c.f. GetUserTimeline
test code in twitter_test.py - which is to say that the documentation needs to be updated)