Split text based on character, but keep 'splitting character'

Ahh yes it looks like you need something like this for nested lists… Ghpythonlib tree helpers - #4 by diff-arch