Add `isolate_method` context manager to utils.py

* Add `next_mro_class` and `import_path` helper functions
Please no.