title: How to check if variable is a specific class in python?
body: <p>I have a variable "myvar" that when I print out its 
  <code>type(myvar)</code> </p>
  
  <p>the output is:</p>
  
  <pre><code>&lt;class 'my.object.kind'&gt;
  </code></pre>
  
  <p>If I have a list of 10 variables including strings and variables of that kind.. how can I construct an if statement to check whether an object in the list "mylist" is of <code>&lt;type 'my.object.kind'&gt;</code>?</p>