There is a nice way to get a path for a module where a class was defined, just do
inspect.getfile(obj.__class__)
Unfortunately, it seems to b