Fix etree usage after import change