flask code to send email through SES and SMS through SMS Infini