code: def output_account(gandi, account, output_keys, justify=17):
      
      output_generic(gandi, account, output_keys, justify)
  
      if 'prepaid' in output_keys:
          prepaid = '%s %s' % (account['prepaid_info']['amount'],
                               account['prepaid_info']['currency'])
          output_line(gandi, 'prepaid', prepaid, justify)
  
      if 'credit' in output_keys:
          output_line(gandi, 'credits', None, justify)
          available = account.get('credits')
          output_line(gandi, '        available', available, justify)
          # sometimes rating is returning nothing
          usage_str = left_str = 'not available'
          usage = account.get('credit_usage', 0)
          left = account.get('left')
          if usage:
              usage_str = '%d/h' % usage
  
              years, months, days, hours = left
              left_str = ('%d year(s) %d month(s) %d day(s) %d hour(s)' %
                          (years, months, days, hours))
  
          output_line(gandi, '        usage', usage_str, justify)
          output_line(gandi, '        time left', left_str, justify)
docs: Helper to output an account information.