def getAKAsInLanguage(movie, lang, _searchedTitle=None):
 akas = []
 for (language, aka) in akasLanguages(movie):
  if (lang == language):
   akas.append(aka)
 if _searchedTitle:
  scores = []
  if isinstance(_searchedTitle, unicode):
   _searchedTitle = _searchedTitle.encode('utf8')
  for aka in akas:
   m_aka = aka
   if isinstance(m_aka):
    m_aka = m_aka.encode('utf8')
   scores.append(difflib.SequenceMatcher(None, m_aka.lower(), _searchedTitle.lower()), aka)
  scores.sort(reverse=True)
  akas = [x[1] for x in scores]
 return akas

def getAKAsInLanguage ( movie , lang , _searchedTitle = None ) : akas = [ ] for ( language , aka ) in akasLanguages ( movie ) : if ( lang == language ) : akas . append ( aka ) if _searchedTitle : scores = [ ] if isinstance ( _searchedTitle , unicode ) : _searchedTitle = _searchedTitle . encode ( 'utf8' ) for aka in akas : m_aka = aka if isinstance ( m_aka ) : m_aka = m_aka . encode ( 'utf8' ) scores . append ( difflib . SequenceMatcher ( None , m_aka . lower ( ) , _searchedTitle . lower ( ) ) , aka ) scores . sort ( reverse = True ) akas = [ x [ 1 ] for x in scores ] return akas
return a list of akas of a movie .