retrieve the Package.Module.Class name from a (Python) class/type
<p>Right, say I've got this structure: (Which I happen to actually have)</p>

<ul>
<li>Interface (folder/Package)
<ul>
<li>Test.py (module)
<ul>
<li>Test (class)</li>
</ul></li>
</ul></li>
</ul>

<p>Now I want to get this whole structure (Interface.Test.Test) as a string stored somewhere.
I know I can use <code>type(myTestObjectInstance)</code> or <code>myTestObjectInstance.__class__</code> But that retrieves me a type object, which prints like <code>&lt;class 'Interface.Test.Test'&gt;</code></p>

<p>But from there on I don't know how to get the actual structure part. I can of course just parse the string, but I suppose there is a more easy way of doing that?</p>

<p>[edit]<br>
Larsmans has provided an answer but it doesn't fully answer what I would like to do:<br>
His answer will not work if all I've got provided is that type object itself (<code>type(myTestObjectInstance)</code></p>
