Given a list of slices, how do I split a sequence by them?
<h3>Given a list of slices, how do I separate a sequence based on them?</h3>

<p>I have long amino-acid strings that I would like to split based on start-stop values in a list. An example is probably the most clear way of explaining it:</p>

<pre><code>str = "MSEPAGDVRQNPCGSKAC"
split_points = [[1,3], [7,10], [12,13]]

output &gt;&gt; ['M', '(SEP)', 'AGD', '(VRQN)', 'P', '(CG)', 'SKAC']
</code></pre>

<p>The extra parentheses are to show which elements were selected from the split_points list. I don't expect the start-stop points to ever overlap.</p>

<p>I have a bunch of ideas that would work, but seem terribly inefficient (code-length wise), and it seems like there must be a nice pythonic way of doing this.</p>
