Playing around with the XML stats API in Python