Add `isolate_method` context manager to utils.py

* Add `next_mro_class` and `import_path` helper functions
In this particular project, I like keeping the distinction between the unittest code under test and the pytest code doing the testing.