Mimics Fortran textual IO in Python
