Splitting a nested list with a string value in python

visit shbcf.ru