Renaming a family type

Hi,

I used the Python Script you provided but I can only rename one type at a time… Is there a way to enable it to rename multiple types?

So sorry, I’m totally new to Python…

Btw, this is the warning I get when I select multiple items:

Thank you!

Jahzeel