Function To Stop Python Script In Code