Move from dprint to python logging