code: def exclude(self, d, item):
          
          try:
              md = d.__metadata__
              pmd = getattr(md, '__print__', None)
              if pmd is None:
                  return False
              excludes = getattr(pmd, 'excludes', [])
              return ( item[0] in excludes ) 
          except:
              pass
          return False
docs: check metadata for excluded items