generate Python code to extract information I need from the API response — Prompt Temple