title: Python Twitter: name Twitter is not defined
body: <p>I've installed the python twitter library of sixohsix (<a href="https://github.com/sixohsix/twitter" rel="nofollow">https://github.com/sixohsix/twitter</a>) and tried to connect to Twitter, but it doesn't work.
  This is my code:</p>
  
  <pre><code>#!/usr/bin/env python
  
  from twitter import *
  
  OAUTH_TOKEN = '...'
  OAUTH_SECRET = '...'
  CONSUMER_KEY = '...'
  CONSUMER_SECRET = '...'
  
  t = twitter.Twitter(auth=OAuth(OAUTH_TOKEN, OAUTH_SECRET, CONSUMER_KEY, CONSUMER_SECRET))
  
  # Get your "home" timeline
  t.statuses.home_timeline()
  </code></pre>
  
  <p>The error message I get is:</p>
  
  <pre><code>Traceback (most recent call last):
     File "./twitter.py", line 3, in &lt;module&gt;
         from twitter import *
     File "/home/XXX/twitter.py", line 11, in &lt;module&gt;
         t = Twitter(auth=OAuth(OAUTH_TOKEN, OAUTH_SECRET, CONSUMER_KEY, CONSUMER_SECRET))
  NameError: name 'Twitter' is not defined
  </code></pre>
  
  <p>I don't know why this error occurs. I also tried</p>
  
  <pre><code>t = twitter.Twitter(...)
  </code></pre>
  
  <p>but it doesn't work either. I found some posts at stackOverflow, butt all solutions doesn't work.</p>