Use proper pyramid api to select lang