<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def output_dns_records(gandi, records, output_keys, justify=12):
 """ Helper to output a dns records information."""

    for key in output_keys:
        real_key = 'rrset_%s' % key
        if real_key in records:
            val = records[real_key]
            if key == 'values':
                val = format_list(records[real_key])
            output_line(gandi, key, val, justify)