Use izip. Tried to fix PEP8 violation but aborted half way through. Changed _write_xml method to not suck as bad.