How change tag parameter/Custom property using a script

You're going to be using Python syntax and indentation is critical. The following will be useful when you share your code here.