Flask middleware for sending SMS