title: Partitioning a List of Tuples by Value in Python
body: <p>i have a list of tuples in Python and want to split it into N Parts based on the Value of the Tuple so i end up with N Parts where the sum of the Value in the contained tuples is as equal as possible.</p>
  <p>So if this is my raw data:</p>
  <p><code>data=[('test',2),('bob',2),('carol',3),('ted',4),('alice',3)]</code></p>
  <p>split into 2 parts would be this:</p>
  <p><code>part1 = [('test',2),('bob',2),('carol',3)]</code>
  <code>part2 = [('ted',4),('alice',3)]</code></p>
  <p>Is there any way to easly do this in Python 3?</p>