def blocks_to_table(blocks, block_struct):
    """A function that takes a codon table represented in block
    structure form and returns the representation as a traditional codon
    table

    Parameters
    ----------
        dict blocks: a python dict representing the codon table in block form
        dict block_struct: a python dict representing the table block structure

    Returns
    -------
        dict table: a python dict representing the codon table
        bool False: an "exception" if input table does not match block_struct
    """
    # declare table to return
    table = {}
    # loop over blocks in block_struct and assign to table using blocks
    for block_ind, codon_list in block_struct.items():
        block_aa = blocks[block_ind]
        for codon in codon_list:
            table[codon] = block_aa
    # return filled codon table
    return table