title: Getting the class name of an instance
body: <p>How do I find out the name of the class used to create an instance of an object in Python?</p>
  <p>I'm not sure if I should use the <a href="https://docs.python.org/2/library/inspect.html" rel="noreferrer" title="inspect — Inspect live objects"><code>inspect</code></a> module or parse the <code>__class__</code> attribute.</p>