def card2dict(inputcard, inputsolvername, outputsolvername = 'generic'):
    outputcard={}
    cardname = inputcard['card']
    trans = translator( inputsolvername )[1]
    outputcard['entryclass'] = trans[ cardname ]['entryclass']
    for oldkey in inputcard.keys():
        if oldkey.find('blank') > -1: continue
        newkey = trans[cardname][oldkey]
        outputcard[newkey] = inputcard[oldkey]
    if outputsolvername <> 'generic':
        inputcard = outputcard
        outputcard = {}
        cards = translator(outputsolvername)[0]
        trans = translator(outputsolvername)[1]
        for entry in cards[cardname]:
            if entry.find('blank') > -1: 
                outputcard[entry] = entry
                continue
            outputcard[entry]=inputcard[trans[cardname][entry]]
    return outputcard
Test for tracebacks that were caused by JSArray not calling it's parent's
dataset/ETHPy150Open saullocastro/mapy/mapy/reader/cardtranslator.py/card2dict--crossover with--dataset/ETHPy150Open mozilla/app-validator/tests/js/test_jstypes.py/TestTracebacks.test_jsarray_contsructor