In Python, I can write
from some_module.some_submodule import SomeClass
foo = SomeClass()
module_and_class = str(type(foo))
and the value of module_and_class
is
<class 'some_module.some_submodule.SomeClass'>
How do I get just 'some_module.some_submodule.SomeClass'
?