Several scripts to analyse Wikidata dumps, which evolved from the earlier Wikidata Analysis.
This project is dormant right now. Users who want to write a program that uses Wikidata content should have a look at Wikidata Toolkit, which provides a faster and cleaner implementation, albeit in Java and not in Python.