Minor changes to twtt.py