See for background and details: https://en.wikipedia.org/wiki/Conway%27s_Game_of_Life
Summary: The universe of the Game of Life is an infinite two-dimensional orthogonal grid of square cells, each of which (at any given time) is in one of two possible states, "live" (alternatively "on") or "dead" (alternatively "off"). Every cell interacts with its eight neighbours, which are the cells that are directly horizontally, vertically, or diagonally adjacent. The way the pattern of cells develops is driven by two rules, the so-called "Birth- and Survival-rules". The result looks like a busy scene of moving "micro-organism"-like creatures, crawling, expanding, dying out and re-emerging.
zahlman•18m ago
As a style hint, also consider breaking the code into functions, instead of using triple-quoted strings (these are generally not docstrings!) to label "sections" of the code. (Even where you don't extract a separate function, that's what comments are for; the otherwise-blank lines with a # are also strange.)
Using a separate shell process for the camera control is inconvenient, and as written isn't going to work on others' machines (in the Python code, you've hard-coded an absolute path to the script in your home directory). I guess this is to avoid thinking about unbuffered I/O in Python; it's really not hard to do that on Linux (there's a curses binding in the standard library; or you can do just the "switch to raw mode" part using https://docs.python.org/3/library/termios.html and call sys.stdin.read (or perhaps sys.stdin.buffer.read) directly.)