Validation Techniques Python