def main(): stream = TweetStream(clean=True) stream.fetch(SETTINGS["twitter_url"], callback=tweet_callback) IOLoop.instance().start()