keep track of eof state in NativeInput (this is probably a crappy way of dealing with this, see https://github.com/frabbit/hx2python/issues/33)