python check if element not in array