def detach_group_policy(policy_name, group_name,
                  region=None, key=None, keyid=None, profile=None):
    '''
    Detach a managed policy to a group.