def app(): #tokenize = [] auth = Auth() auth = auth.connect() streaming_data = DataCollector() streaming_data = tweepy.Stream(auth, DataCollector()) streaming_data.filter(track=['#python'])