Lazy sequences in Python