How to write a generator that returns ALL-BUT-LAST items in the iterable in Python?,"list(allbutlast([1, 2, 3]))"