def valueForKeyPath(dict, keypath, default = None):
    """
    Get the keypath value of the specified dictionary.
    """
    keys = keypath.split('.')
    for key in keys:
        if key not in dict:
            return default
        dict = dict[key]

    return dict