Added ensure_list_of_lists util
Convert flat lists to nested lists everywhere
Started implementing pie shapes