How To Use If In Lambda Python