def getrefvalue(dataObj, ref):
    """ Derefernce a scope (e.g. .item.subitem) into a value """
    namespace = ref.split('.')[1:]
    keyRef = dataObj
    for name in namespace:
        keyRef = keyRef[name]
    return keyRef