Now using logging module. Use globals.py to set log level