title: List all attributes which are inherited by a class
body: <p>Hi I have the below from which I am trying to pull data from Outlook using code obtained on StackOverflow. </p>
  
  <p>Using the first loop, I am trying to gather all attributes available to the object.</p>
  
  <p>Whilst running it I notice the absence of Name which is later called in the 2nd loop, I assume this is due to inheritance. Please can you assist me in finding all attributes available to a class?</p>
  
  <pre><code>import win32com.client,sys
  
  o = win32com.client.gencache.EnsureDispatch("Outlook.Application")
  ns = o.GetNamespace("MAPI")
  
  adrLi = ns.AddressLists.Item("Global Address List")
  contacts = adrLi.AddressEntries
  numEntries = adrLi.AddressEntries.Count
  print(type(contacts))
  nameAliasDict = {}
  attrs_ = dir(contacts)
  for i in range(len(attrs_)):
      print((attrs_[i]))
  
  for j in contacts:
      print(j.Name)
  
      sys.exit()
  </code></pre>