Better Python 3 compatibility in some test suite shared data profiling scripts.
These changes invert the logic, importing the Python 3 builtins module and aliasing xrange() to
range(), and passing if an ImporError occurs. The code will now no longer be modified by the 2to3
program.