How to look ahead one element (peek) in a Python generator? How to look ahead one element (peek) in a Python generator? python python