Fix I/O compatibility with IronPython (cont'd)