Perhaps rather than using Python's Duolingo API, you use Duolingo's. The site, tschuy.com, has a list of options that can be used in Duolingo's own API. If you want to skip reading the article, simply use the base url of https://www.duolingo.com/api/1, and use one of these options.
GET /version_infoGET /users/show?id={user_id} or /users/show?username={username}GET /store/get_itemsPOST /me/switch_language (This requires the parameter learning_language. An example of this could be learning_language: fr to change your language to French)GET /version_info/dictionary/hints/{target}/{source}?tokens=[“word1”,”word2”,...]