Python Check If Array Contains Only One Value