sep = '...' rest = text.split(sep, 1)[0]
text = 'some string... this part will be removed.' head, sep, tail = text.partition('...') >>> print head some string