def authen():
 twitter_credential = ((os.environ.get('HOME', os.environ.get('USERPROFILE', '')) + os.sep) + '.rainbow_oauth')
 if (not os.path.exists(twitter_credential)):
  oauth_dance('Rainbow Stream', CONSUMER_KEY, CONSUMER_SECRET, twitter_credential)
 (oauth_token, oauth_token_secret) = read_token_file(twitter_credential)
 return OAuth(oauth_token, oauth_token_secret, CONSUMER_KEY, CONSUMER_SECRET)

def authen ( ) : twitter_credential = ( ( os . environ . get ( 'HOME' , os . environ . get ( 'USERPROFILE' , '' ) ) + os . sep ) + '.rainbow_oauth' ) if ( not os . path . exists ( twitter_credential ) ) : oauth_dance ( 'Rainbow Stream' , CONSUMER_KEY , CONSUMER_SECRET , twitter_credential ) ( oauth_token , oauth_token_secret ) = read_token_file ( twitter_credential ) return OAuth ( oauth_token , oauth_token_secret , CONSUMER_KEY , CONSUMER_SECRET )
authenticate with twitter oauth .