def findHandler(self):
 while self:
  if (self.name in ('media', 'tags')):
   break
  self = self.parent
 else:
  return None
 for atom in self:
  if (atom['tag'].value == 'hdlr'):
   return atom['hdlr']
 return None

def findHandler ( self ) : while self : if ( self . name in ( 'media' , 'tags' ) ) : break self = self . parent else : return None for atom in self : if ( atom [ 'tag' ] . value == 'hdlr' ) : return atom [ 'hdlr' ] return None
find the handler corresponding to this fieldset .