Fix slow tests in python3.

Merge before the release!