Converted codebase to python3 - passes all new tests (2 and 3).