title: Using Tweepy API behind proxy
body: <p>I have a using <strong>Tweepy</strong>, a python wrapper for Twitter.I am writing a small GUI application in Python which updates my twitter account.</p>
  
  <p>Currently, I am just testing if the I can get connected to Twitter, hence used test() call. I am behind Squid Proxy server.What changes should I make to snippet so that I should get my work done.</p>
  
  <p>Setting <strong>http_proxy</strong> in bash shell did not help me.</p>
  
  <pre><code>def printTweet(self):
      #extract tweet string
      tweet_str = str(self.ui.tweet_txt.toPlainText()) ;
      #tweet string extracted.
      self.ui.tweet_txt.clear()  ;
  
      self.tweet_on_twitter(str);
  
  def tweet_on_twitter(self,my_tweet) :
      auth = tweepy.OAuthHandler(CONSUMER_KEY, CONSUMER_SECRET);
      auth.set_access_token(ACCESS_KEY, ACCESS_SECRET) ;
      api = tweepy.API(auth) ;
  
      if api.test() :
          print 'Test successful' ;
      else :
          print 'Test unsuccessful';
  </code></pre>