def _prep_acl_for_compare(ACL):
 ret = deepcopy(ACL)
 ret['Owner'] = _normalize_user(ret['Owner'])
 for item in ret.get('Grants', ()):
  item['Grantee'] = _normalize_user(item.get('Grantee'))
 return ret

def _prep_acl_for_compare ( ACL ) : ret = deepcopy ( ACL ) ret [ 'Owner' ] = _normalize_user ( ret [ 'Owner' ] ) for item in ret . get ( 'Grants' , ( ) ) : item [ 'Grantee' ] = _normalize_user ( item . get ( 'Grantee' ) ) return ret
prepares the acl returned from the aws api for comparison with a given one .