sortedBookList = sorted(bookList, key=lambda elem: (sortByName(elem),
    sortByFirstLanguage(elem, firstLanguage), sortByLanguages(elem,
    possibleLanguages)))
How to pass additional arguments to custom python sorting function