def args_fixup(args):
<EOL>res = []<EOL>for kh in args.key_handles:<EOL><INDENT>kh_int = pyhsm.util.key_handle_to_int(kh)<EOL>res.append((kh, kh_int,))<EOL><DEDENT>args.key_handles = res<EOL>if args.db_url and args.db_url.startswith('<STR_LIT>'):<EOL><INDENT>env_var = args.db_url[<NUM_LIT:4>:]<EOL>if env_var in os.environ:<EOL><INDENT>args.db_url = os.environ[env_var]<EOL><DEDENT><DEDENT>
Additional checks/cleanups of parsed arguments.