Automatic 2to3 conversion
Make test modules discoverable by default
Better comply with PEP 8
Use undeprecated spellings of these assertions
Use range() in this test for Python 3 compatibility
Compare registered handlers order insensitively
Handle strings so tests pass on Python 3