human
Split a list of tuples into sub-lists of the same tuple field
assistant
Here is some code to split a list of tuples `data` into sub-lists of the same tuple field using itertools

[list(group) for key, group in itertools.groupby(data, operator.itemgetter(1))]

#Warning: this code generation is experimental. Please inspect the code for any bugs before executing.