Simulator in python to play with simple rules generating complex behavior