Finally, i decide to make this:<br><br>from metatag import MetaTag<br>from htmltools import TagHTML<br><br>class Structure(object):<br>&nbsp;&nbsp;&nbsp; class A(TagHTML):<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; pass<br>&nbsp;&nbsp;&nbsp; class B(TagHTML):<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; pass<br><br>&nbsp;&nbsp;&nbsp; def get(self):<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; __all__ = dir(self)<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; classes = filter(lambda k: type(getattr(self, k)) == type(TagHTML) , __all__)<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; methods = filter(lambda k: str(type(getattr(self, k))) == &quot;&lt;type &#39;instancemethod&#39;&gt;&quot; , __all__)<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; return&nbsp; classes, methods<br><br><br>So i can Lis Methods and Classes, and then use setattr or whatever&nbsp; needed.  <br><br>There is a think left, i can&#39;t jus compare this:<br><br>if type(somethingA) == type(somthingB):&nbsp; <br>
<br>I transform type() to a string and then compare them..&nbsp; (like in the code below)<br><br>Thanks<br><br>