To resolve this issue will have to add this line api = tweepy.API(auth) before using the api.search
To resolve this issue will have to add this line api = tweepy.API(auth) before using the api.search