The Twilio python quickstart guide says to use a submodule called twilio.rest .
But after installing the twilio module today via sudo pip install twilio, wh
sudo pip install twilio
I had the same symptom but my problem was I named my view handler twilio.py. That caused a conflict with twilio library. Just name your py file something else like phone.py.