[Sean Jensen-Grey, mutating a list while iterating over it] > ... > # is this expected behavior? Yes indeed. See the Language Reference Manual, section "The 'for' statement". Change, e.g., for x in l_sync: to for x in l_sync[:]: if that's not the behavior you want.