I've updated this script to include suggested fixes from posts #25 (camperdave) and #28 (divergentdave).
I also fixed an issue with trophy #72 "Melon Baller, Shot Caller" which was not detected properly when completed due to a typo ('Mellon' instead of 'Melon').
I still have issues with...