imeta.add takes an imeta.AVU, not a, v, u separately.
imeta.delete takes one AVU at a time, not a list.

applyMetadataTemplates.py:
exclude attributes that are set by Ida
add extra_recursive option for applying templates in subcollections