Simplified attribute validation for Python.