python check if element in list is greater than