What else would you write it in (besides python)?
What would I write this in? I wouldn't write this.
Still, well done to the guy. It's good code.
I was just playing around with the API and thought I'd do this a quick little exercise. Once it worked, I thought I'd share. Thanks for the kind words.