'Yields:
Segments matching the specified type.'

def iter_segments_by_type(self, t):

    for seg in self.iter_segments():
        if ((t == seg.header.p_type) or (t in str(seg.header.p_type))):
            (yield seg)
