How change tag parameter/Custom property using a script

Hi, how I can access to the tag properties from a script. I need a script to change all the tags inside a folder something like:

for each tag inside folder
tag.property = False

Or something like
for i<20; i++
write_property("tag_path"+i, False).

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