Validate dicts in Python
You can also try the link below:
https://github.com/sunlightlabs/validictory
Its a great package that helps in validation in an easier way
I highly recommend Cerberus for its readability or jsonschema because it uses the JSON Schema standard