Functioning twitter_api.py