import locale
locale.setlocale(locale.LC_ALL, 'en_US')
my_str = locale.format('%d', result, grouping=True)
In python, is there an easy way to turn numbers with commas into an integer, and then back to numbers with commas?