Python script to analyze tags: distribution, etc.