Object changed from string IO to file-like