more python logging, fixes