Refactored rate_limit test: calculate remaining calls until limit in get_tweets2.py