def keyhandles_fixup(args):
new_handles = {}<EOL>for val in args.key_handles:<EOL><INDENT>n = pyhsm.util.key_handle_to_int(val)<EOL>new_handles[n] = val<EOL><DEDENT>args.key_handles = new_handles<EOL>
Walk through the supplied key handles and normalize them, while keeping
the input format too (as value in a dictionary). The input format is
used in AEAD filename paths.