Raise Valueerror Python Example