pwtools
_ensure_list(arg)
_ensure_list
nested_loops(lists[, flatten])
nested_loops
Nested loops, optional flattening.
unique2d(arr[, what])
unique2d
Reduce 2d array arr to a 2d array with unique rows (or cols).