This code sends the digits 1234 on the live call.
from plivo import plivoxml

response = plivoxml.ResponseElement()
response.add(plivoxml.DTMFElement('1234'))
print(response.to_string())
Response
<Response>
    <DTMF>1234</DTMF>
</Response>