Edit: segment.py