Refactored service bus serialization to xml into an xml writer class. No longer appending strings, now using cStringIO.StringIO (2.x) / io.StringIO (3.x).