Tuple usefull functions, methods and snippets.
#sort a list of tuple by a value next.sort(key=lambda tup: tup[2])