Due to a SelfSigned certificate and a netscaler stripping certain items we had the issue that the JSD certificate was not trusted.
To set this to a correct local truststore I would suggest to add a parameter in this script to either set the correct store or to disable the verification.
e.g.
response = requests.post(result_url, data=json.dumps(content_params), headers=headers, auth=token, timeout=timeout, verify=False)