use log method failing

I did as you suggested and it shows the same output.
Is there something that needs to be configured for python? That’s what it looks like to me but I don’t know anything about python.