These methods were deprecated in stdlib xml.etree and also in lxml, and are ultimately removed in python 3.9.