Update getSegs.py
Merge pull request #1 from roryk/master

Update getSegs.py to roryk's modification about the empty status of startrange.