readline() on closed filehandle T at blah. See comment below for line. print() on closed filehandle T at blah. See comment below for line.