Fixed test suite bisection on Python 3.

Thanks to @marfire for spotting this.