generateKey method returns key value, working on dictionary of dictionaries