minor reformatting of twitter.py file and minor refactoring of models.py file.