corrected split method maxsplit arg: 2 splits, not 3 in "pattern, search, replace = line.split(None, 3)"