The tokenfst function has a mapping argument which is not working fine.
isym = mapping[topo_arc[2], j],
removing the mapping and using the token generates the expected output
isym = token,