python logging post