Interacting with Segment Editor Widget through Python