Select lines[1:7] not lines[1:8].