Check If Python Dictionary Hash