def align_parms(parms):
    """
    Making all df in parms to have the same index and column
    """
    init = True
    set_c = {}
    set_i = {}
    for k, d in parms.items():
        if init:
            set_c = set(d.columns)
            set_i = set(d.index)
            init = False
        else:
            set_c = set_c & set(d.columns)
            set_i = set_i & set(d.index)
    list_c = list(set_c)
    list_c.sort()
    list_i = list(set_i)
    list_i.sort()
    new_parms = {k: d.reindex(index=list_i, columns=list_c) for k, d in
        parms.items()}
    return new_parms
