title: Python "isinstance" with class name instead of type
body: <p>I want to check if an object or variable is an instance of the specified class type, but using the name of this class, not its type. Something like this:</p>
  <pre><code>class A: pass
  
  class B(A): pass
  
  class C(B): pass
  
  c_inst = C()
  
  # Not working, isinstance expects the type:
  ok = isinstance(c_inst, 'A')
  </code></pre>
  <p>Are there any alternatives? I wnat to use the class name, so  <code>isinstance(c_inst, A)</code> is not available in this case.</p>