drivers.py -- added a flush for the logging messages