[python3] Stage 1 of futurize.
[python3] Stage 2 of futurize.
[python3] Removing relative imports for tests.