Add convert function

That allows to convert Python to block of XML