def parseExpandedDix(expanded):
    """
    This function given an expanded monolingual dictionary
    returns a dictionary of the format :

    lt-expand OP : bypasses:bypass<vblex><pres><p3><sg>
                   bypassed:bypass<vblex><past>

    Dictionary format : key = bypass
    Entry for key = [[vblex, presm, p3, sg], [vblex, past]]
    """
    extractedList = {}
    for entry in expanded:
        tmpList = []
        attributes = []
        try:
            if ':<:' in entry:
                rightPart = entry.split(':<:')[1]
            elif ':>:' in entry:
                rightPart = entry.split(':>:')[1]
            else:
                rightPart = entry.split(':')[1]
            rightPart = rightPart.split('<')
            for x in rightPart:
                hold = x.split('>')
                for iterator in hold:
                    if iterator != '':
                        attributes.append(iterator)
                tmpList.append(hold)
            head = tmpList[0][0]
            tail = tmpList[-1][-1]
            try:
                attributes.remove(head)
                attributes.remove(tail)
            except ValueError:
                pass
            key = head + tail
            if key in extractedList:
                extractedList[key].append(attributes)
            else:
                extractedList[key] = [attributes]
        except IndexError:
            pass
    return extractedList
