Changed utils.partition_by_list to return a list instead of a tuple.