code: def add_message_to_queue(self, payload, **attributes):
          
  
          return self.queue.send_message(MessageBody=json.dumps(payload),
                                         MessageAttributes={k: {"StringValue": v} for k, v in attributes.items()})
docs: Given a payload (a dict) and any optional message attributes (also a dict), add it to the queue.