implemented log support with python logging module