Jsonpath Access Array Python Definition Function