Как получить значение из BS

custom_elem = doc.TopElem.custom_elems.GetOptChildByKey("<custom_elem>","name")