slight edits to twitter.py'