>Maybe one can run python on the network card rom too?
The network card ROM isn't microcontroller code, its just x86 code that runs on your main processor, called by the BIOS[1]. You could potentially hence have the OPs project run from the BootROM, if it would fit. It might be slightly tricky, as it runs as part of GRUB, which doesn't expect to find itself running from there.
Alternatively, the article mentions:
> Environments like Mirage OS (and other "just enough operating systems") could also add Python using the BITS code without too much difficulty, he said.
You could therefore probably add this code to iPXE [2] without too much trouble to get python on your BootROM, though I'm unsure how much of the C standard library you would need to borrow or reimplement. By the looks of it, iPXE doesn't have threads or local storage support, so you would be pretty limited in usability without a lot of work.