def iformat(i):
    """
    Format an integer with commas deliminating every factor of 1000
    """
    import locale
    locale.setlocale(locale.LC_ALL, 'en_US')
    return locale.format('%d', i, grouping=True)
