Create a number of IAM group, silently handling exceptions when entity already exists
                                        .
    :param iam_client:                  AWS API client for IAM
    :param groups:                      Name of IAM groups to be created.

    :return:                            None

def create_groups(iam_client, groups):
    """
    Create a number of IAM group, silently handling exceptions when entity already exists
                                        .
    :param iam_client:                  AWS API client for IAM
    :param groups:                      Name of IAM groups to be created.

    :return:                            None
    """
    groups_data = []
    if type(groups) != list:
        groups = [ groups ]
    for group in groups:
        errors = []
        try:
            printInfo('Creating group %s...' % group)
            iam_client.create_group(GroupName = group)
        except  Exception as e:
            if e.response['Error']['Code'] != 'EntityAlreadyExists':
                printException(e)
                errors.append('iam:creategroup')
        groups_data.append({'groupname': group, 'errors': errors})
    return groups_data