Simplified cluster analysis using Python constructs. Improved comments.