[python3] Fixes the majority of failing tests (c.f. #157)