updated twitter.py to included required validator