string split with indices in python,"c = [(m.start(), m.end() - 1) for m in re.finditer('\\S+', a)]"