check if all values in array are true python