Alarm scripting help

I am need to create alarms in already built tags but am having a hard time following the manual.

I would like to do this with scripting. I do know how to manually create alarms.

Any tag that has a name that includes lets say PAH i would like to create an alarm the same as the tag name and contain a certain group that will be specified by the first 3 letters of the tag.

This will need to be done in all of the tag folders that have been created.

Please help i am very new to python scripting.

Thank you very much

This doc should get you started, it includes code examples.
https://docs.inductiveautomation.com/display/DOC81/system.tag.configure