Python Split List Into Sublists Based On Condition