As it turned out, tostringdespite its name, it really returns an object whose type bytes.
Strange things have happened. Anyway, here's the proof:
>>> from xml.etree.ElementTree import ElementTree, tostring
>>> import xml.etree.ElementTree as ET
>>> element = ET.fromstring("<a></a>")
>>> type(tostring(element))
<class 'bytes'>
Stupid, isn't it?
Fortunately, you can do this:
>>> type(tostring(element, encoding="unicode"))
<class 'str'>
, , , ascii .
, "unicode" !!!!!!!!!!!