Because if cElementTree is not available on the system, ElementTree is used instead, and that version doesn't accept bytes, resulting in an exception. See http://bugs.python.org/issue9257#msg152864