Thank you very much for writing the script.
I'm not sure if it's working correctly.
The example results you posted in your answer shows 3 D5/T5 caches which show the required attributes.
One of them is a mystery and two are traditionals.
The challenge requires 10 with the two attributes (which your script seems to count coorectly) and at least one of them D5/T5 tradinional. Would your script result in challenge not fulfilled for a cacher that has a D5/T5 found on a mystery but not on a traditional?
The reason for the tradi in the challenge is that D5 mostly depend on a hard mystery but reaching the cache container might be easy. But the challenge is based on difficult climbing, so a D5/T5 with difficult climbing/climbing gear attribut is included in the challenge showing that a really difficult (D5) climbing was fulfilled.
So challenge is defined as
1 Traditional D5/T5, attribut difficult climbing + climbing gear
+ 9 caches of whatever type Diff/Terr, with attribut difficult climbing + climbing gear.
Is this what the script would filter?
Thanks again
Oliver