Como fazer as vírgulas aparecerem em números inteiros no terminal python

>>> format(1234567, ',d')
'1,234,567'
Yawning Yak