def set_payload(self, payload):
"""
Set the raw payload of this recipe
:param str payload: the payload, as a string
"""
self.data['payload'] = payload
def set_json_payload(self, payload):
"""
Set the raw payload of this recipe
:param dict payload: the payload, as a dict. The payload will be converted to a JSON string internally
"""
self.data['payload'] = json.dumps(payload)
These functions are missing the return statement.