Update Cellular automaton.py

Added generations printing, dictionary printing.