Python: Calculate Adjusted Wallace, Wallace and Rand coefficients, and Simpson's index of diversity