from plivo import plivoxml
response = plivoxml.ResponseElement()
response.add(
plivoxml.DialElement(action='https://<yourdomain>.com/dial_action/', time_limit=20)
.add(plivoxml.NumberElement('12025551111')))
response.add(plivoxml.DialElement().add(plivoxml.NumberElement('12025552222')))
print(response.to_string())
<Response>
<Dial timeout="20" action="https://<yourdomain>.com/dial_action/">
<Number>12025551111</Number>
</Dial>
<Dial>
<Number>12025552222</Number>
</Dial>
</Response>