Replaced TagFile with io.BytesIO.