python check if element not in dictionary