I recently wrote a sample solution on how Azure Active Directory authentication for ASP.NET can be used to authenticate and authorize Python Web API using token validation techniques. This sample demonstrates how to manually validate the JWT access token in a Python Web API using custom code. Python validator (validateJWT.py) validates and confirms if the token is valid else returns 401, Unauthorized message.
The code repository is available here.