Sorry - I meant that it would only remove 8, not 4 spaces. I couldn't count on my screen!  But it still leaves in quite a few at the start of the other lines, adding about 15% overhead to each message sent over the network.

For those (hopefully fewer) occasions when you want to print for debugging and testing, you can use utils.prettify.