This StackOverflow question should answer it: http://stackoverflow.com/questions/1823058/how-to-print-number-with-commas-as-thousands-separators-in-python-2-x
The second part of the answer can help you if you are trying to add commas in a non-standard way.

