python check if all values in list are equal to value