set mtime and seek(0) the StringIO