Modules used by the script include sys, the
usual Python system interface.
#================================================================ # Imports #---------------------------------------------------------------- import sys
We'll also use an interesting container type, the defaultdict class from Python's optional collections module. See the online documentation for defaultdict.
from collections import defaultdict