def __output_unpaired_vals(d_vals, used_ff_keys, f_f_header, sf_d, s_f_header,<EOL>missing_val, out_handler, outfh, delim="<STR_LIT:\t>"):
if missing_val is None:<EOL><INDENT>raise MissingValueError("<STR_LIT>" +<EOL>"<STR_LIT>")<EOL><DEDENT>for k in d_vals:<EOL><INDENT>if k not in used_ff_keys:<EOL><INDENT>f_f_flds = d_vals[k]<EOL>if s_f_header is not None:<EOL><INDENT>s_f_flds = [dict(zip(s_f_header, [missing_val] * len(s_f_header)))]<EOL><DEDENT>else:<EOL><INDENT>s_f_num_cols = len(sf_d[d_vals.keys()[<NUM_LIT:0>]][<NUM_LIT:0>])<EOL>s_f_flds = [[missing_val] * s_f_num_cols]<EOL><DEDENT>out_handler.write_output(outfh, delim, s_f_flds, f_f_flds,<EOL>s_f_header, f_f_header)<EOL><DEDENT><DEDENT>
Use an output handler to output keys that could not be paired.

Go over the keys in d_vals and for any that were not used (i.e. not in
used_ff_keys), build an output line using the values from d_vals,
populated the missing columns with missing_val, and output these using the
provided output hander.