code: def get_dir(obj, **kwargs):
      
      attrs = list(filter(filter_dunder, dir(obj)))
  
      if not attrs:
          return "No public attributes."
  
      s = "Attributes:"
      for attr in attrs:
          s += '\n - {} ({})'.format(attr, extract_type(type(getattr(obj, attr))))
  
      return s
docs: Return the type of an object. Do some regex to remove the "<class..." bit.