odwlib/debug/debug.py is a good start point for debug and log