def find_countries(string, context=None):
 ret = []
 for word_match in iter_words(string.strip().lower()):
  word = word_match.value
  if (word.lower() in COMMON_WORDS):
   continue
  try:
   country_object = babelfish.Country.fromguessit(word)
   if is_allowed_country(country_object, context):
    ret.append((word_match.span[0], word_match.span[1], {'value': country_object}))
  except babelfish.Error:
   continue
 return ret

def find_countries ( string , context = None ) : ret = [ ] for word_match in iter_words ( string . strip ( ) . lower ( ) ) : word = word_match . value if ( word . lower ( ) in COMMON_WORDS ) : continue try : country_object = babelfish . Country . fromguessit ( word ) if is_allowed_country ( country_object , context ) : ret . append ( ( word_match . span [ 0 ] , word_match . span [ 1 ] , { 'value' : country_object } ) ) except babelfish . Error : continue return ret
find countries in given string .