Finding Structural Opening Host Using Python

Hi All, if I create an opening in a steel bar, is there any way to find the host element of it? I am trying to learn python whereby assigning the workset of the host element to the opening cut. Bear in mind this is not a void but an Opening Cut?