Why not just build the number using some kind of fancy "continuing integer" constructor function? Then you could just use commas, Blacken the code, and it will look great, right?

P = my_int_maker(29674495668685510550154174642905332730771991,
        79985304335099507553127683875317177019959423,
        8596428121188033664754218345562493168782883)

---
Ricky.

"I've never met a Kentucky man who wasn't either thinking about going home or actually going home." - Happy Chandler