def handle_mentions(api, responses): for status in tweepy.Cursor(api.mentions_timeline).items(): process_status(status, responses)