python return false if key not in dict