Deleted unused files in SegmentBySegment
Removed pylint warnings W1401

Set prefix r in front of string literal to indicate it as constant. No
escapes will be done for \.