fixing structure according to python-twitter