Expanding on this topic, I thought it would be better to propose an extension based on it. It can contain:
A get key from value block, which will get the first key in a dictionary whose value matches the argument.
A get keys from value block, which will return a list of all the keys in a dictionary whose values match the argument (since you can have multiple values with different keys in a dictionary).