>>> import locale

>>> locale.setlocale(locale.LC_ALL, ‘en_US’)
‘en_US’

>>> locale.format(“%d”, 1255000, grouping=True)
‘1,255,000’

>>> locale.format(“%.2f”, 1255000, grouping=True)
‘1,255,000.00’

Sumber : http://stackoverflow.com/questions/1823058/how-to-print-number-with-commas-as-thousands-separators-in-python-2-x