Python Lambda If Function In Arduino