Modifications to the python script template to use the logging module