from plivo import plivoxml
response = plivoxml.ResponseElement()
response.add(
plivoxml.MessageElement(
'Hi, this is a sample text',
src='+12025550000',
dst='+12025551111',
type='sms',
callback_url='https://<yourdomain>.com/sms_status/',
callback_method='POST'))
print(response.to_string())