Partial conversion to tweepy