import tweepy
consumer_key= 'your consumer_key'
consumer_secret= 'your consumer_key_secret'
access_token= 'your access_token'
access_token_secret= 'your access_token_secret'
auth = tweepy.OAuthHandler(consumer_key, consumer_secret)
auth.set_access_token(access_token,access_token_secret)
api = tweepy.API(auth)
#From here, you can tweet, search tweets, search keywords, etc.