Python implementation of game of life displayed via curses