flaked segment.py