Diversity / (dis)proportionality measures, election quotas, and apportionment methods in pure Python.