PyScript is pretty browser-focused, so it may not be the best for this project… but there are other efforts to make Python compile to WASM, which can “run anywhere”