switched to python logging