Python: convert list to generator,"(n for n in [1, 2, 3, 5])"