Support both python3 and python2 for comparisons.

Also add tests for concurrency levels 16 and 32, now that I have a
laptop with four cores and eight threads rather than just two cores.
Upstream: TotalEq → Eq.