int() argument must be a string, a bytes-like object or a number, not 'method' code example
Example: python elementTree tostring write() argument must be str, not bytes
>>> type(tostring(element, encoding="unicode"))
<class 'str'>
>>> type(tostring(element, encoding="unicode"))
<class 'str'>