check if element is not in dictionary python