Create new segment in Python script

A post was split to a new topic: Prevent a segment from changing when editing other segments