python check if all dictionary values are equal