Assemble the commands.

def make_wire_commands(*ids):
  """Assemble the commands."""
  cmd_to_wire = {
      cmd: sum(ord(c) << (i * 8) for i, c in enumerate(cmd)) for cmd in ids
  }
  wire_to_cmd = {wire: cmd for cmd, wire in six.iteritems(cmd_to_wire)}
  return cmd_to_wire, wire_to_cmd