Added python logging