code: def format_sms_payload(self, message, to, sender='elkme', options=[]):
          
          self.validate_number(to)
  
          if not isinstance(message, str):
              message = " ".join(message)
  
          message = message.rstrip()
  
          sms = {
              'from': sender,
              'to': to,
              'message': message
          }
  
          for option in options:
            if option not in ['dontlog', 'dryrun', 'flashsms']:
              raise ElksException('Option %s not supported' % option)
            sms[option] = 'yes'
  
          return sms
docs: Helper function to create a SMS payload with little effort