Compatibility for Py3k.
Better xml string comparision. Still not really good