code: def find_segment(self, ea):
          
          for seg in self.seglist:
              if seg.startea <= ea < seg.endea:
                  return seg
docs: do a linear search for the given address in the segment list