Finds the parent (if any) of the embedded element by seeing
        if the start and end indices of the element are a subset of 
        any type or executable in this module.

def find_embedded_parent(self, element):
        """Finds the parent (if any) of the embedded element by seeing
        if the start and end indices of the element are a subset of 
        any type or executable in this module.
        """
        result = None
        for t in self.types:
            if (element.start > self.types[t].start and
                element.end < self.types[t].end):
                result = self.types[t]
                break
        else:
            for iexec in self.executables:
                if (element.start > self.executables[iexec].start and
                    element.end < self.executables[iexec].end):
                    result = self.executables[iexec]
                    break

        return result