Add python logging snippet.