How To Validate Data In Python