def relMatches(rel_attr, target_rel):
 rels = rel_attr.strip().split()
 for rel in rels:
  rel = rel.lower()
  if (rel == target_rel):
   return 1
 return 0

def relMatches ( rel_attr , target_rel ) : rels = rel_attr . strip ( ) . split ( ) for rel in rels : rel = rel . lower ( ) if ( rel == target_rel ) : return 1 return 0
does this target_rel appear in the rel_str? .