add python Logger snippet