When writing scripts that build up complex/nested properties for components, I often start by copying the JSON from the property in the designer and pasting it into my script.
Because python uses True/False and JSON uses true/false i either have to replace these manually, or add "true=True" and "false=False" to my scripts