Logger Python Example For Loop