def untranslateName(s):
    """Undo Python conversion of CL parameter or variable name."""
    s = s.replace('DOT', '.')
    s = s.replace('DOLLAR', '$')
    if s[:2] == 'PY':
        s = s[2:]
    s = s.replace('.PY', '.')
    return s
