title: How to get type of object's attribute in python
body: <p>assume I have the following class:</p>
  
  <pre><code>class myClass():
      def __init__(self, number):
          self.myStr = "bla"
          self.myInt = number * 3
  </code></pre>
  
  <p>how do I get the the attributes types? I mean I want to get the following list: ['str','int']?</p>
  
  <p>I also want it to work on derived classes.</p>
  
  <p>Thanks a lot :)</p>