Open Humans has developed a Django package that helps take care of the OAuth2 dance and generally act as a wrapper for the APIs. Switching to this will require a migration but the app benefits from broader feature support in the future.