def _raw_misc_to_dict(raw):
    """
    Converts text-form of misc to a dictionary.

    misc will be stored in the form ["(key1, val1)", "(key2, val2)",...]
    """
    ret = {}
    for elem in raw:
        key, _, val = elem.partition(',')
        key = key[1:].strip()
        val = val[:-1].strip()
        ret[key] = val
    return ret