Sort:  

Thanks!

10 lines of python for all but the retention one, 10 extra line of python for the retention one. Compact and efficient.... plus 3 days to browse the blockchain and harvest the information :D