I'd argue that this improves readability, because you have line breaks in your XML which is more readable if you print it, eg for testing or debugging.

My code should actually remove all 8 common spaces.

I mainly made the change because I didn't find any other solution that
* preserved some indenting according to levels of XML elements
* made pylint happy

Any suggestions?