Aside from the standard Python sys
module that gives programs access to their standard I/O
streams and command line arguments, the program needs
the etree library from the lxml module.
import sys from lxml import etree