Migration to Python 3. All the tests (excepting mox-based ones) have been passed.