title: How to split a multi word string but escaping split at certain word combinations?
body: <p>Say I have a string as:</p>
  
  <pre><code>mystr = "my name is some good name"
  
  # I want to split at white space except for the part "name is"
  expectedoutput = ["my", "name is", "some", "good", "name"]
  </code></pre>
  
  <p>How can I do it with and without shlex?</p>
  
  <p>The way I was trying to do is: </p>
  
  <pre><code>Import shlex
  def careful_split(inputstr, donot_split = "name is"):
      strlex = shlex.shlex(inputstr, commenters =?, posit = ?)
      strlex.wordchars = ?
      #and other shlex function
  
      return list(strlex)
  </code></pre>