Game Of Life implementation in Python