Add `isolate_method` context manager to utils.py

* Add `next_mro_class` and `import_path` helper functions
That's pretty reasonable, actually, there is sense in that.

If there is a way of using unittest for these tests, however, I think I would prefer it, as it would lower the bar for contributions. That's way outside the scope of this PR, though. Sorry to have interrupted!