Interacting with Segment Editor Widget through Python

How do I get the segmenteditor widget from Python when I am in the SegmentEditorEffect class? I want to use the setActiveEffectByName method