Python module to validate data structure.