How To Validate User Input In Python