A more efficient answer which will handle large files and consume a limited amount of memory..
inp = open('inputfile')
out = open('outfile1', 'w')
for line in inp:
if line == "Sentinel text\n":
out.close()
out = open('outfile2', 'w')
else:
out.write(line)
out.close()
inp.close()