def translateRoman(aLabel, usePrefix):

    romanList = ["VIII", "III", "VII", "IV", "IX", "II", "VI", "I", "V", "X"]
    numbrList = [8, 3, 7, 4, 9, 2, 6, 1, 5, 10]

    pLen = len(usePrefix)
    bLabel = aLabel.upper()
    if (bLabel.startswith(usePrefix)):
        bLabel = bLabel[pLen:]
        if (bLabel[0] == "_"):
            bLabel = bLabel[1:]
        found = 0
        for kk in range(len(romanList)):
            if (not found):
                if (bLabel.startswith(romanList[kk])):
                    found = 1
                    curKK = kk
                    curN = numbrList[kk]
                    curR = romanList[kk]

        if (not found):
            if (bLabel == "X"):
                return ("NA")
            elif (bLabel == "TIS"):
                return ("NA")
            else:
                print " ERROR ??? ", bLabel, usePrefix
                sys.exit(-1)

        rLen = len(curR)
        if (len(bLabel) > rLen):
            bLabel = bLabel[rLen:]
            if (bLabel == "A"):
                curN += 0.2
            elif (bLabel == "B"):
                curN += 0.4
            elif (bLabel == "C"):
                curN += 0.6
            else:
                print "     left over in translateRoman <%s> <%s> <%s> " % (bLabel, aLabel, usePrefix)

        return (curN)

    else:
        return ("NA")