def METHOD_NAME(fn):
    retDict = {}
    with open(fn) as f:
        for l in f:
            ls = l.strip()
            if ls and ls[0] != '#':
                nc = ls.find(':')
                ne = ls.find('=')
                n = 0
                if nc > 0 and ne < 0:
                    n = nc
                elif ne > 0 and nc < 0:
                    n = ne
                elif ne < nc:
                    n = ne
                elif nc < ne:
                    n = nc
                if n > 0:
                    k = ls[:n].strip()
                    v = ls[n+1:].strip()
                    v = v.replace('\\=','=').replace("\\'","'").replace('\\"','"')
                    retDict[k] = v
    return retDict