def WriteGroupPolicyTemplateAdmx(target_path, apps):
    'Writes a Group Policy template (ADM format)for the specified apps.\n\n  The file is UTF-16 and contains CRLF on all platforms.\n\n  Args:\n    target_path: Output path of the .ADM template file.\n    apps: A list of tuples containing information about each app.\n        Each element of the list is a tuple of:\n          * app name\n          * app ID\n          * optional string to append to the auto-update explanation\n            - Should start with a space or double new line.\n  '
    contents = GenerateGroupPolicyTemplateAdmx(apps)
    f = codecs.open(target_path, 'wb', 'utf-16')
    f.write(contents)
    f.close()
Writes a Group Policy template (ADM format)for the specified apps.

The file is UTF-16 and contains CRLF on all platforms.

Args:
  target_path: Output path of the .ADM template file.
  apps: A list of tuples containing information about each app.
      Each element of the list is a tuple of:
        * app name
        * app ID
        * optional string to append to the auto-update explanation
          - Should start with a space or double new line.
def WriteGroupPolicyTemplateAdmx(target_path, apps):
    'Writes a Group Policy template (ADM format)for the specified apps.\n\n  The file is UTF-16 and contains CRLF on all platforms.\n\n  Args:\n    target_path: Output path of the .ADM template file.\n    apps: A list of tuples containing information about each app.\n        Each element of the list is a tuple of:\n          * app name\n          * app ID\n          * optional string to append to the auto-update explanation\n            - Should start with a space or double new line.\n  '
    contents = GenerateGroupPolicyTemplateAdmx(apps)
    f = codecs.open(target_path, 'wb', 'utf-16')
    f.write(contents)
    f.close()