How to know which vars are defined in a class
<p>How can I get a list of which vars are defined in a class, without the classes imported in it?</p>

<p><code>vars(obj)</code> returns all the vars in the class, excluding unwanted bliltin vars, like <code>__doc__</code>, <code>__file__</code>, <code>__name__</code>, <code>__package__</code>, <code>os</code>, <code>pdb</code>, etc.</p>
