Schema based validation with fields declared in Python