console.log in python view 2