apns_string = json.dumps(apns_dict, ensure_ascii=False)
message = {'default': 'default message', 'APNS_SANDBOX': apns_string}
messageJSON = json.dumps(message, ensure_ascii=False)
Format APNS-style JSON message in Python for use with Amazon SNS