In order for my definition to make sense, the organism or program must be able to observe the memory of the state. In the case of the bacteria and the Python program, I doubt they are able to do that in any meaningful way.
But I would not mind if a slightly more involved program, or a system of plants for that matter, would be considered conscious. The basic definition seems fairly irrelevant, and it obviously matters how much the specific type of consciousness matches our own experience for us humans to actually care.