switching to python logging