A simple game-of-life implementation in python