edited twitter.py endless loop bug