Short answer: It will probably work, since I assume you don't need the timing to be reliable. It could start to glitch if the pi is under heavy load.
Since you're using python I'll assume you're using linux. Linux isn't a real time operating system, so it is generally terrible at doing things like this. The issue is your program can be paused by the scheduler while the OS is doing something else, so any timing you request is not guaranteed. Now, a pi is ridiculously overpowered for this, so you'll probably get away with it if that's all the pi is doing, but under heavy load you could see the OS prioritise other processes and your display will freeze.
You could install the preempt_rt patches to make it do real time better, this changes Linux into something that resembles a real time operating system, I don't have any experience with it though.
Generally something like this is better done by a microcontroller, because it isn't constantly trying to juggle a hundred different tasks like an operating system is.
Russia and China being allies is a given. Iran and the DPRK will be on their side too.
Israel, the USA, Japan, and parts of Europe will no doubt be on the opposite side, with the more sensible parts of Europe staying out of it.
India I have no idea, they're nominally a USA ally, but I could also see them trying to stay neutral.
China world no doubt take the opportunity to reclaim the island of Taiwan.
I imagine a lot of Arab states would try to remain neutral at first, but Israel would probably take the opportunity to invade the rest of Syria, at which point some may be dragged into the conflict.
They're smart enough to know that America will drop them like a mouldy hot potato the femtosecond it doesn't need them for chips at least.