Make re-reading performance consistent with regular file objects, Python 3 test fixes