[python] Builtin.open returns FileIO (with write methods and stuff)
[python] explicitly hint NativeIterable.iterator to avoid type inference problems (see #2979)