Nearly complete twitter.py and model.py