Run 2to3 before running tests under Python 3.
Sort by key function.