def queue_tweet(tweets_fp): with settings(user='root'): with open(tweets_fp) as f: tweets = f.read().split('\n') env.hosts = get_hosts() execute(append, '/root/tweepy/tweet_corral.txt', tweets)