Yes, but how about the *elif mode=="clear"* ?? they are abandoned.