Python End Program After If Else Statement Excel