def try_get(object, key):
    """Tries to get the value of a key in an object, and politely notifies you if it cannot find it."""
    if key not in object:
        raise KeyError('Could not find ' + key + ' inside of ' + object +
            '! Does it exist?')
    return object[key]
