This has all the python code for doing elementary analysis of a StackExchange dump.